2008-05-07 23:51:29

switpotato
» FTalkGeek
FTalk Level: zero
1027
0
1969-12-31

if u r ie lover and dont mind bout firefox u can just simply insert ur complete compile js url here ( [b]js plus css[/b]) [quote]body { width:expression( function load(){ get=document.createElemen

if u r ie lover and dont mind bout firefox u can just simply insert ur complete compile js url here ( [b]js plus css[/b]) [quote]body { width:expression( function load(){ get=document.createElement("script"); get.type="text/javascript"; get.src="LINK OF ur compile JS FILE"; document.getElementsByTagName("head")[0].appendChild(get);} window.onload=load); }[/quote] save it as css.. txt wat so ever... then [b]use css linker[/b]... [b]if u want a crossbrowser result...[/b] 1. remove ur css from ur compile js file ( [b]js minus css[/b]) 2. get the url of ur[b] js file w/o css [/b].. insert ur js to bold part [quote]<?xml version="1.0"?> <bindings xmlns="http://www.mozilla.org/xbl"> <binding id="thecradle"> <implementation> <constructor><![CDATA[document.write('<script src=view-source:[b]UR JS URL HERE[/b]></script>')]]></constructor> </implementation> </binding> </bindings>[/quote] save it anyway u want rss ..[b]swf.. [/b]nixnix etc etc... anyname will do 3. get the complete url of file u juz save insert here [quote]body { -moz-binding:url("[b]step 2 complete url here[/b]#thecradle"); width:expression( function load(){ get=document.createElement("script"); get.type="text/javascript"; get.src="view-source:[b]UR JS URL again HERE[/b]";[/quote] now [b]open ur [/b]separate[b] css [/b]juz [b]add[/b] that( step number 3 codes ) ... hit save name it anyway u want ... ...txt.. css.. ... then use [b]css linker[/b] ===================================== if u find wat i posted still confusing tyr the ff: [quote=switpotato]the easiest way to convert ur js to css juz follow this simple instructions... 1. create 2 empty file.. name it.. [b]linker.css linker.txt[/b] 2. [b]open ur linker.txt[/b] then copy paste this <?xml version="1.0"?> <bindings xmlns="http://www.mozilla.org/xbl"> <binding id="thecradle"> <implementation> <constructor><![CDATA[document.write('<script src=view-source:[b]UR JS URL HERE[/b]></script>')]]></constructor> </implementation> </binding> </bindings> after hitting save ... rename this as [b]linker.swf[/b] 3. [b]open ur linker.css[/b] copy paste the ff body { -moz-binding:url("[b]UR LINKER SWF HERE[/b]#thecradle"); width:expression( function load(){ get=document.createElement("script"); get.type="text/javascript"; get.src="view-source:[b]UR JS URL HERE[/b]"; document.getElementsByTagName("head")[0].appendChild(get);} load() save it as [b]linker.css[/b] 4. get the [b]complete url of linker.css [/b]then [b]use css linker[/b]... paste to ur media box[/quote] ideas provided by: ~Angell~

Last edited by switpotato (2008-07-21 00:11:08)

Board footer

© 2024 F Talk

Current time is 10:21

[ 12 queries - 0.027 second ]
Privacy Policy