Pages: 1234567891011..11

  2007-07-19 17:13:03

feruzz
» Banned
FTalk Level: zero
1557
0
1969-12-31

[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][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 (I use [b]replaceChild[/b] method) :lol: :arrow: [b]Preview:[/b] [url]http://www.friendster.com/41772112[/url] :penguin: :arrow: [b]Preview image:[/b] [img]http://h1.ripway.com/myscript/photo/flash.GIF[/img] :arrow: [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] :arrow: [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)

Pages: 1234567891011..11

Board footer

© 2024 F Talk

Current time is 04:44

[ 12 queries - 0.019 second ]
Privacy Policy