Pages: 123456..6

  2007-09-09 01:04:09

shakiro214
» FTalkGeek
FTalk Level: zero
1188
0
1969-12-31

[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

[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 :arrow: Edit :arrow: 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. :cool: :thumbsup:

Last edited by shakiro214 (2008-02-22 10:17:41)

Pages: 123456..6

Board footer

© 2024 F Talk

Current time is 14:30

[ 12 queries - 0.012 second ]
Privacy Policy