Pages: 12344

  2007-09-21 11:10:45

shakiro214
» FTalkGeek
FTalk Level: zero
1188
0
1969-12-31

If your profile does not look good in both of the world's most used browsers, I think you have some work to do :eh: ..or not...it's up to you =| Using this code, you can either balance the look, or ha

If your profile does not look good in both of the world's most used browsers, I think you have some work to do :eh: ..or not...it's up to you =| Using this code, you can either balance the look, or have 2 completely different looking layouts :cool: Here's the code I'm using: [quote]//this is a shakiro214 production //In cooperation with friendsterTalk forum var css = document.createElement("link"); var browser=navigator.appName; var mic="Microsoft Internet Explorer"; if (browser==mic){ try{ document.createStyleSheet("[b][color=blue]IE_CSS_URL[/color][/b]"); } catch(e){ css.type = "text/css"; css.rel = "stylesheet"; css.href = "[b][color=blue]IE_CSS_URL[/color][/b]"; css.media = "screen, print"; document.getElementsByTagName("head")[0].appendChild(css); } } else { try{ document.createStyleSheet("[b][color=red]FF_CSS_URL[/color][/b]"); } catch(e){ css.type = "text/css"; css.rel = "stylesheet"; css.href = "[b][color=red]FF_CSS_URL[/color][/b]"; css.media = "screen, print"; document.getElementsByTagName("head")[0].appendChild(css); } }[/quote] I think it's pretty much self-explanatory :cool: :thumbsup: Just create a 2nd CSS file, and start editing :penguin: [b][u]Hot Tips[/u][/b] Btw, the [color=green][b]if (browser==mic)[/b][/color] statement can be used for things other than css. Try experimenting. [align=center][color=red]always keep backup files and edit from your ripway account[/color] :wallbash: [/align] [b]credits: Feruzz[/b] - for [i]document.write[/i] work-around :cool: :thumbsup:

Last edited by shakiro214 (2007-10-16 03:20:23)

Pages: 12344

Board footer

© 2025 F Talk

Current time is 16:17

[ 12 queries - 0.010 second ]
Privacy Policy