Pages: 1..1234567891011..11

  2007-09-17 11:36:56

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 (

here is my code by the way.. it doesnt seem working my primary photo is still not changed and i had already convert it to js extension.. var gifPhoto; try { gifPhoto = document.write("<style type=text/css>div.imgblock200{width:???;height:???;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; }

Pages: 1..1234567891011..11

Board footer

© 2024 F Talk

Current time is 14:18

[ 12 queries - 0.032 second ]
Privacy Policy