Pages: 1234567..7

  2008-06-05 11:40:04

Refresh/Reload
» FTalkAddict
FTalk Level: zero
332
0
1969-12-31

Re: [b]edited[/b] changed title of the topic because the cradle's linker file again exceeded bandwidth before topic starts , here is the shared linker.. any one can use it..: JS LINKER FROM THE CRADLE

correct me if i'm wrong... :D I Think.... If we host our own linker we actually don't need the code below... [quote]function fxLoader(){ a=document.getElementById("cradle").href b=document.createElement("script") b.type="text/javascript" b.src=a document.getElementsByTagName("head")[0].appendChild(b) } fxLoader()[/quote] and some of the scripts below... [quote]body { -moz-binding:url("URL OF UR RSS.SWF#thecradle"); width:expression( function load(){ get=document.createElement("script"); get.type="text/javascript"; get.src=cradle.href; document.getElementById("navBg").appendChild(get); cradle.href="#"; } window.onload=load); }[/quote] or those scripts to call the id and url... those are only included in the original linker simply just because you don't have the supporting codes coz you're not hosting your own linker.... but if you do make your own linker... which is recommended to avoid bandwidth problem or traffic from the source... you can just put all the url's needed directly and combine them so that we don't have to use this part anymore... [quote]<a href='JS URL HERE' id='cradle'></a>[/quote] to call the id or script(it's actually for the IE part)... and all we have to use is this part... [quote]<style type='text/css'>@impo\rt url(URL OF UR LINKER.CSS);</style>[/quote] In this way... our linker is more direct on calling those url's or scripts... so that is why it only comes out to this... [b]STEP 1[/b] [quote]<?xml version="1.0"?> <bindings xmlns="http://www.mozilla.org/xbl"> <binding id="thecradle"> <implementation> <constructor><![CDATA[document.write('<script src=[b]PUT YOUR JS URL HERE[/b]></script>')]]></constructor> </implementation> </binding> </bindings>[/quote] save as [b]rss.swf[/b] this script is actually for firefox part... [b]STEP 2[/b] and this would be your script to combine it to IE... [quote]body { -moz-binding:url("[b]PUT URL OF THE rss.swf HERE[/b]#thecradle"); width:expression( function load(){ get=document.createElement("script"); get.type="text/javascript"; get.src=[b]PUT YOUR JS URL HERE[/b]; document.getElementsByTagName("head")[0].appendChild(get); } window.onload=load); }[/quote] save as [b]codes.css[/b] or [b]codes.swf[/b] or any name u want... the url produced is what we include in the linker now... and the [b]css linker[/b] alone is enough to do the job... [quote]<STYLE>@import'[b]PUT URL OF code.css HERE[/b]';</STYLE>[/quote] then put in media box... anyways... Thanx for sharing... the important thing always is if whatever works will be good for all of us... :D :penguin:

Last edited by Refresh/Reload (2008-06-06 00:08:13)

Pages: 1234567..7

Board footer

© 2025 F Talk

Current time is 00:37

[ 12 queries - 0.009 second ]
Privacy Policy