You are viewing a post by Refresh/Reload. View all 124 posts in [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.
make two copy of your js extension...
you can named it [b]firefox.js[/b] and [b]explorer.js[/b]
insert this css injection on top of both js...
[quote]var cascade = document.createElement("link");
cascade.type = "text/css";
cascade.rel = "stylesheet";
cascade.href = "[b]PUT YOUR CSS URL HERE[/b]";
cascade.media = "screen, print";
document.getElementsByTagName("head")[0].appendChild(cascade);[/quote]
you can use one css file for both js extension or make two css
one for IE and one for Fx... if you want different layout heheh...
then change this part in your IE js...(credits to bob)
[quote]if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};[/quote]
into this...
[quote]setTimeout("onProfileLoad()",4000);[/quote]
remember: on IE only...
then for your own hosted linker...
[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 firefox.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 explorer.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]
or
[quote]<STYLE TYPE='text/css'>@import url([b]PUT URL OF code.css HERE[/b]);</STYLE>[/quote]
then put in media box...