Pages: 1

  2008-05-14 21:30:03

16th
» FTalkGeek
FTalk Level: zero
1388
0
1969-12-31

can anyone give me a css with js please..:cry::cry:

you can't injest you JS to CSS file.. but it is possible to inject CSS to a JS file.. :eh: how to do that? [quote]var css = document.createElement("link"); function injectcss() { if(window.cssinjected == undefined) { cssinjected = 1; var css = document.createElement("link"); css.setAttribute("type","text/css"); css.setAttribute("rel","stylesheet"); css.setAttribute("href","[b]CSS URL[/b]"); css.setAttribute("media","screen, print"); document.getElementsByTagName("head")[0].appendChild(css); } }injectcss();[/quote] put that code in your JS ext.. :thumbsup:

Pages: 1

Board footer

© 2024 F Talk

Current time is 23:46

[ 12 queries - 0.015 second ]
Privacy Policy