Cheap Commercial Posted April 18, 2006 Share Posted April 18, 2006 hi is there a way to convert javascript to css and be able to put it in a <style> tag? Quote Link to comment Share on other sites More sharing options...
Ninjakreborn Posted April 18, 2006 Share Posted April 18, 2006 depends on the type of javascript. if you have a javascript drop down menu you can do that better with just css and xhtml in my opinion, if it's something else, it can be styled with css, the same way that xhtml is.google something like "styling javascipt with css"or "javascript and css"or something like that. Quote Link to comment Share on other sites More sharing options...
Cheap Commercial Posted April 18, 2006 Author Share Posted April 18, 2006 [!--quoteo(post=365869:date=Apr 17 2006, 10:42 PM:name=businessman332211)--][div class=\'quotetop\']QUOTE(businessman332211 @ Apr 17 2006, 10:42 PM) [snapback]365869[/snapback][/div][div class=\'quotemain\'][!--quotec--]depends on the type of javascript. if you have a javascript drop down menu you can do that better with just css and xhtml in my opinion, if it's something else, it can be styled with css, the same way that xhtml is.google something like "styling javascipt with css"or "javascript and css"or something like that.[/quote] ahah ok thankxx boy you know alot about coding Quote Link to comment Share on other sites More sharing options...
Ninjakreborn Posted April 18, 2006 Share Posted April 18, 2006 only xhtml, and css, I am working on javascript, php, sql(it's variations, web content, design, layout, and graphic design, but those are going to take a while to finish learning. I like self teaching, so it sometimes takes shorter time or longer depending. Quote Link to comment Share on other sites More sharing options...
AndyB Posted April 18, 2006 Share Posted April 18, 2006 [!--quoteo(post=365868:date=Apr 17 2006, 11:38 PM:name=Derek CC)--][div class=\'quotetop\']QUOTE(Derek CC @ Apr 17 2006, 11:38 PM) [snapback]365868[/snapback][/div][div class=\'quotemain\'][!--quotec--]hi is there a way to convert javascript to css and be able to put it in a <style> tag?[/quote]No. Javascript is a language and CSS is (effectively) mark-up. What you might want to consider is placing your javascript in an external file and adding it to your pages using syntax like the following:[code]<script type="text/javascript" src="your_js_file.js"></script>[/code]The javascript file should be only script, so exclude the opening and closing tags. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.