Jump to content

VMartin

Members
  • Posts

    4
  • Joined

  • Last visited

VMartin's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Hey Scott, thanks for the help, it works.I have two more question: <link href="CSS/mfcssp.css" rel="stylesheet" type="text/css" /><script type="text/javascript">function Listing (Num) { var i = 0 for (i = 0; i < Num; i++){ document.write ('<li class="listd"><a class="linkstd" href="#">Link</a></li>') }}</script></head><body><ul class="liststd"> <script type="text/javascript"> var i = 0 for (i = 0; i < 10; i++){ document.write ('<li class="listd"><a class="linkstd" href="#">Link</a></li>') } </script> <input type="button" onclick="Listing (10)" value="Click me!" /></ul></body> 1. With the script that is defined in the body, everything works fine and the output is 10 links styled with "linkstd" class inside <li> elements with class "listd", but when the function Listing is called by the button, the output is 10 links in <li> tags but neither of them has the class applied. Does it have to do something with the script being in the head?2. When the page loads, two things are visible on it; the 10 links listed by the script in the body and the button. When I press the button, all of that goes away and the function Listing's output shows. How can I make the previous list and the button stay on the page?TNXMartin
  2. Is there a way to do something like this with java script: <body><script type="text/javascript"> document.write ('<a class="linkstd" href="#">Link</a>');</script></body> What I'd like to know is if there's a possibility to write an HTML element using JavaScript to the page with certain CSS predefined style?TNXMartin
  3. Thanks!One more question, about something else:I have a <div> which has a normal and a hover state. I have one background image on the "normal" state, and another background image on the hover state. The "rollover" thing works perfectly in firefox, but not in IE. Is there a way to get this to work?
  4. Hy,I'm new to this forum and basicaly new to CSS - but learning. :)I just have a basic question, if it sounds dumb, sorry. English is not my native language and, as stated above, I'm new to CSS.: What are semantic id tags (and other tags) and what are non-semantic?Tnx
×
×
  • Create New...