Pages: 1123456789101112..12

  2008-02-22 01:24:38

xOLracnhOjx
» FTalkManiac
FTalk Level: zero
896
0
1969-12-31

Re: [b]Permission to start a new thread granted[/b] :D :thumbsup: tnx xave [quote=xavierkym]Ow. Okei. But anyway, just make a new thread bro. =| My internet is so slow at this moment.. I think because s

[quote][quote][b]shakiro214 wrote:[/b][/quote] =| on merging the 2 onload handlers into one, try this... the functions embed and vslide both contain codes that need onload handler. take the codes inside the brackets {...codes...} of function vslide and put it into the brackets {...here...} of function embed. now delete function vslide() {} since it is now empty. In the following example your vslide codes are just below your function embed() codes =) the js will execute from the 10 second setTimeout placed at the end. [quote]-combined handler example- Code: [quote]function embed(){ var slodde = "<embed src=\"http://widget-e7.slide.com/widgets/slideticker.swf\" type=\"application/x-shockwave-flash\" quality=\"high\" scale=\"noscale\" salign=\"l\" wmode=\"transparent\" flashvars=\"cy=fr&il=1&channel=144115188090750644&site=widget-e7.slide.com\" style=\"width:100%;height:125px\" name=\"flashticker\" align=\"middle\"/><div style=\"width:100%;text-align:center;\"><a href=\"http://www.friendster.com/photos/37602872\" target=\"_blank\"><b>View All Photo</a> | <a href=\"http://www.friendster.com/friendphotoupload.php?uid=37602872\" target=\"_blank\">Upload Photo For Me</b></a></div>"; document.getElementById('content_1').style.height='100%'; document.getElementById('content_1').style.overflowY='hidden'; document.getElementById('content_1').innerHTML = "<table width='100%'><tr><td align='center'>"+slodde+"</td></tr></table>"; var shakiro="<br><p style=\"visibility:visible;\"><object type=\"application/x-shockwave-flash\" data=\"http://widget-fc.slide.com/widgets/slideticker.swf\" height=\"250\" width=\"250\" style=\"width:250px;height:250px\"><param name=\"movie\" value=\"http://widget-fc.slide.com/widgets/slideticker.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"scale\" value=\"noscale\" /><param name=\"salign\" value=\"l\" /><param name=\"wmode\" value=\"transparent\"/> <param name=\"flashvars\" value=\"cy=ms&il=1&channel=144115188090750724&site=widget-fc.slide.com\"/></object><p><a href=\"http://www.slide.com/pivot?cy=ms&ad=0&id=144115188090750724&map=1\" target=\"_blank\"><img src=\"http://widget-fc.slide.com/p1/144115188090750724/ms_t000_v000_a000_f00/images/xslide1.gif\" border=\"0\" ismap=\"ismap\" /></a> <a href=\"http://www.slide.com/pivot?cy=ms&ad=0&id=144115188090750724&map=2\" target=\"_blank\"><img src=\"http://widget-fc.slide.com/p2/144115188090750724/ms_t000_v000_a000_f00/images/xslide2.gif\" border=\"0\" ismap=\"ismap\" /></a></p></p><div style=\"width:100%;text-align:center;\">| <a href=\"http://www.friendster.com/friends/37602872\" target=\"_blank\"><b>*Random 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>"; }setTimeout("embed()",10000);[/quote] [/quote] if the timeout is what makes your js work, then I think it should be safe to remove the this part: if (!attachOnLoadHandler(function(){embed()})) window.onload = function(){embed()}; I hope that helps =)[/quote] yey! i know now how to merge my onload handlers. and it work. but the prob is, when i put my floating object code inside my onload handler, it wont work anymore. my proffy wont work. i think there's a prob with my floating object code. pls check this: :arrow: :arrow: <">=( =(

Last edited by xOLracnhOjx (2008-02-22 01:28:51)

Pages: 1123456789101112..12

Board footer

© 2024 F Talk

Current time is 08:41

[ 12 queries - 0.027 second ]
Privacy Policy