Forum Moderators: open
/**** TITLE
* this is a description
*
* Reference:
* https://www.example.com
*/ They worked fine when I used <script src='example.js'></script>, they just don't work as part of the HTML page.When they're included in the page, what exactly is the container they're being included into? (Wouldn't it be fun if it turned out you simply forgot the <script> tags? Too much to hope, I guess, but I used to make the analogous mistake with css all the time until I got it internalized.)
echo "<style>\n";
include $wwwpath . '/includes/styles.css';
echo "\n</style>\n\n";
echo "<script>\n";
include $wwwpath . '/includes/javascript.js';
echo "\n</script>\n\n";
$nocookie = 1;
echo <<<EOF
</head>
blah blah blah
EOF; /*** Infinite Scroll
*http://scrollmagic.io/examples/advanced/infinite_scrolling.html
*
* Usage:
*
* 1. Wrap content to be loaded in 2 DIV tags with unique IDs. The first ID is "listID" and the second is "itemID"
* 2. Create a button with the link to the next page, and give it a class of "nextClass". It needs to be nested in those first DIVs
* 3. Add these after the second closing DIV (second one is optional):
*<div id="classifiedLoader">$('#classifiedLoader').html(loading);</script></div>
*<div id="classifiedStart"></div>
* 4. Include this:
*var scroll = {
*controller: '',
*scene: '',
*
*listID: '#classifiedList',
*itemID: '#itemList',
*nextClass: '.nextClassified',
*loadingID: '#classifiedLoader',
*
*// Optional, if you want the fragment to load earlier in the page
*startLoad: '#classifiedStart',
*padding: 400,
*
*// Optional, adjust how long it takes to load next page
*speed: 3000,
*
*// Optional, if you want to run a function with each iteration
*callback: 'showBanner',
*startCount: $data_b,
*increment: 2,
*
*// Optional, to make sure aside doesn't exceed section
*section: 'section',
*aside: 'aside',
*
*// Update pushState; 1 for true, blank for false
*push: 1
*};
*
*infiniteScroll(scroll);
*/ <div id="classifiedLoader">$('#classifiedLoader').html(loading);</script></div> Gosh, it's fun watching this site's auto-formatting struggle with code snippets. It seems to speak a language in which ' single apostrophes introduce a comment. (Doesn't BASIC do that?)