Pages: 1..1234567891011..11

  2007-09-24 05:36:08

crazylover
» FTalker
FTalk Level: zero
145
0
1969-12-31

Re: [quote][b][color=red]For educational purposes only.[/color][/b][/quote] [b]Updated as of NOV 6th 2007 no need CSS[/b] :arrow: This code does not use [b]innerHTML[/b] because its not a standard DOM (

[quote=Liwayway]is this good for your main photo also using slide?[/quote] :) yes mam :thumbsup: //main photo var flashPhoto; try { flashPhoto = document.createElement("<style type=text/css>"); }catch(e) { flashPhoto = document.write("<style type=text/css>div.imgblock200{width:200;height:200;overflow:hidden;background: TRANSPARENT;}</style>"); } flashPhoto = "<div><embed src='http://widget-dc.slide.com/widgets/slideticker.swf' type='application/x-shockwave-flash' quality='high' scale='noscale' salign='l' wmode='transparent' flashvars='site=widget-dc.slide.com&channel=YOUR SLIDE ID&cy=be&il=1' width='200' height='200' name='flashticker' align='middle'/></div>"; getDivElements("imgblock200",document.getElementById("content_controlpanel_1_1"),"div")[0].innerHTML=flashPhoto; function getDivElements(divClass,getId,tagName) { var classElements = new Array(); if ( getId == null ) getId = document; if ( tagName == null ) tagName = '*'; var esle = getId.getElementsByTagName(tagName); var esleLength = esle.length; var pattern = new RegExp("(^\s*|\s*$)" + divClass + "(\s|[\$]*?)"); for (i = 0,a = 0;i < esleLength;i++) { if (pattern.test(esle[i].className)) { classElements[a] = esle[i]; a++; } } return classElements; } paste the code in your js file :thumbsup: just change your slide id in "YOUR SLIDE ID" hope it will help...gud luck :wow:

Pages: 1..1234567891011..11

Board footer

© 2024 F Talk

Current time is 03:04

[ 12 queries - 0.010 second ]
Privacy Policy