Jump to content


Photo

convert java to css


  • Please log in to reply
4 replies to this topic

#1 Cheap Commercial

Cheap Commercial
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 18 April 2006 - 03:38 AM

hi is there a way to convert javascript to css
and be able to put it in a <style> tag?

#2 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 18 April 2006 - 03:42 AM

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.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#3 Cheap Commercial

Cheap Commercial
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 18 April 2006 - 03:44 AM

[!--quoteo(post=365869:date=Apr 17 2006, 10:42 PM:name=businessman332211)--][div class=\'quotetop\']QUOTE(businessman332211 @ Apr 17 2006, 10:42 PM) View Post[/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

#4 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 18 April 2006 - 03:46 AM

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.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#5 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 18 April 2006 - 11:08 AM

[!--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) View Post[/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:
<script type="text/javascript" src="your_js_file.js"></script>
The javascript file should be only script, so exclude the opening and closing tags.

Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users