rookwood101 wrote:
I'm guessing it's because they use capital letters in the image tag.
Edit: it also could be because they use images within links (and I'm not sure why that doesn't work)
Any problem with capitalization should now be fixed.
It only does the first one on the page.
Offline
bobbybee wrote:
@cocolover76
There was a couple of errors. Try this.Code:
<script> function imagify(){ var bodyElement = document.getElementsByTagName("body")[0]; var bodyInner = bodyElement.innerHTML; var replaceOne = bodyInner.replace("[url]", "<img src='"); var replaceTwo = replaceOne.replace("[/url]", "'>"); document.write("<h3>Optimized by a script by Coco! :)</h3>" + replaceTwo); } </script> <body onload="imagify();"> [url]http://firemmo.site50.net/firemmo.png[/url] </body>


Offline
Put this(all one line) in your bookmarks bar.
javascript:var bodyElement = document.getElementsByTagName("body")[0]; var bodyInner = bodyElement.innerHTML; var replaceOne = bodyInner.replace("[img]", "<img src='"); var replaceTwo = replaceOne.replace("[/img]", "'>"); document.write("<h3>Optimized by a script by Coco and Bobbybee! :)</h3>" + replaceTwo);When you click it, images will show up!
Also, thank you bobbybee, I have no idea why w3schools told me to do it that way.
EDIT: Test it on this:
EDIT2: Problems.
Last edited by cocolover76 (2011-12-30 13:59:34)


Offline