[quote][b][color=red]For educational purposes only.[/color][/b][/quote]
[b]Updated as of NOV 6th 2007
no need CSS[/b]
This code does not use [b]innerHTML[/b] because its not a standard DOM (I use [b]replaceChild[/b] method)
[b]Preview:[/b] [url]http://www.friendster.com/41772112[/url]
[b]Preview image:[/b]
[img]http://h1.ripway.com/myscript/photo/flash.GIF[/img]
[b]For Animate Image (.gif, .jpg, .png etc...)[/b]
just paste your image url into [b]URL_OF_IMAGE[/b]
[quote]/*global image, sibling, document, content_0*/
image = document.createElement("img");
image.src = "[b]URL_OF_IMAGE[/b]";
image.width = "200";
image.height = "150";
sibling = content_0.getElementsByTagName("a")[0];
sibling.parentNode.replaceChild(image, sibling);[/quote]
[hr]
[b]For Embed Object (.swf)[/b]
just paste your embed url (.swf) into [b]URL_OF_SWF[/b]
[quote]/*global flashurl, sibling, document, content_0*/
flashurl = document.createElement("embed");
flashurl.src = "[b]URL_OF_EMBED[/b]";
flashurl.width = "200";
flashurl.height = "150";
sibling = content_0.getElementsByTagName("a")[0];
sibling.parentNode.replaceChild(flashurl, sibling);[/quote]
For newbies: this code is a [color=red][b]JS extension[/b][/color]
Last edited by feruzz (2008-05-15 11:55:30)