Pages: 1..1234567891011..11

  2007-09-17 23:18:39

xxxNotAboutYouxxx
» FTalker
FTalk Level: zero
237
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 (

uhmm by the way, just wanted to ask if this time is this right? it seem may primary photo is not showing..T_T.. pls. help var gifPhoto; try { gifPhoto = document.write("<style type=text/css>div.imgblock200{width:200;height:200;overflow:hidden}</style>"); }catch(e) { gifPhoto = document.createElement("<style type=text/css>"); } gifPhoto = "<img src='http://i99.photobucket.com/albums/l313/mark890/prft1.gif' width='200' height='200'>"; getDivElements("imgblock200",document.getElementById("content_controlpanel_1_1"),"div")[0].innerHTML=gifPhoto; 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; }

Last edited by xxxNotAboutYouxxx (2007-09-17 23:21:05)

Pages: 1..1234567891011..11

Board footer

© 2024 F Talk

Current time is 03:12

[ 13 queries - 0.023 second ]
Privacy Policy