[b]Preview:[/b]
[img]http://localhostr.com/files/aeb4ae284de9bd9958f1.jpg[/img]
[b]Step 1:[/b] Go to [url=http://www.slide.com]www.slide.com[/url] and make a vertical slide.
The slide in the preview has a width of 285, then choose a height.
[b]Step 2:[/b] Copy the code below and paste to notepad.
[quote]var shakiro="<br>[b]EMBED VERTICAL SLIDE CODES HERE[/b]<div style=\"width:100%;text-align:center;\">| <a href=\"http://www.friendster.com/friends/[b]your userid[/b]\" target=\"_blank\"><b>*View My Friends*</a> |</div>";
document.getElementById('content_2').style.height='100%';
document.getElementById('content_2').style.overflowY='hidden';
document.getElementById('content_2').innerHTML = "<table width='100%'><tr><td align='center'>"+shakiro+"</td></tr></table>";[/quote]
[b]Step 3:[/b] Replace [b]your userid[/b] with your own user id and make sure all of the quotations {"} in the code for your vertical slide have a backslash before them (e.g. [b]\"[/b]) [b]-or-[/b] or that they are changed to single quotation {'}, then replace the [b]EMBED VERTICAL SLIDE CODES HERE[/b] with the code for your slide.
[quote]The easiest way to replace all of the quotations is to:
a. put your code in a notepad
b. click
Edit
Replace
[img]http://h1.ripway.com/shakiro214/images/replace.JPG[/img]
c. Find what: [b]"[/b]
Replace with: [b]'[/b]
d. click [b]Replace All[/b][/quote]
[b]Step 4:[/b] Copy the entire code from your notepad and paste it into
one of the onload handlers of your external js file.
[b]Onload Handler:[/b] Is a handler which triggers an onload event once the entire page has finished loading.
You might already have several onload handlers in your js. If you have a slide for photo gallery just paste this code above the variable for the photo gallery slide. See next code for example on [b]Onload Handler[/b].
[b]*if you don't have one then use this:[/b]
[quote]function vslide(){
[b]PASTE VERTICAL SLIDE CODES HERE[/b]
}setTimeout("vslide()",8000);[/quote]
[b]-or this-[/b]
[quote]if (!attachOnLoadHandler(function(){vslide()})) window.onload = function(){vslide()};
function vslide(){
[b]PASTE VERTICAL SLIDE CODES HERE[/b]
}[/quote]
Now paste the entire code into your external js file, save, done.
Last edited by shakiro214 (2008-02-22 10:17:41)