Javascript question (HELP!!!!!)
What i want to do, is make a link without a underline. Then when someone mouses over the text, it underlines and changes a different color. Please help...
Adam
Best Regards,
Adam Lee
DigitalONE Design
President - Internet Division
[email protected]
digitalonedesign.com
Eugene Grinberg posted this at 09:09 — 20th February 2000.
They have: 47 posts
Joined: Jan 2000
You could use the following Dynamic HTML:
<style type="text/css">
<!--
A:link, A:visited { text-decoration: none }
A:hover { text-decoration: underline }
-->
</style>
Eugene Grinberg http://www.interprosolution.com
FREE Tools & Services for Webmasters
Suzanne posted this at 19:53 — 20th February 2000.
She has: 5,507 posts
Joined: Feb 2000
Um, that's not DHTML...
That is a local style sheet. And it won't work in Netscape. Hover only works in IE 4+ at the moment, though it may work in Netscape 5. Removing the underline will work in both browsers, though.
For more on CSS, I have a collection of links at links - css that includes the Master List from webreview, the w3c style sheet validator, and more.
DHTML, by the way, uses HTML, CSS, JavaScript, ActiveX, Visual Basic and the DOM (and other languages, too) to create movement on web pages. It isn't a language on its own, it is a way of using different languages for an interactive effect.
Suzanne
------------------
Zero Cattle
Suzanne
Tables DeMystified
[This message has been edited by Suzanne (edited 20 February 2000).]
NSS posted this at 03:43 — 21st February 2000.
They have: 488 posts
Joined: Feb 2000
In my opinion, CSS is considered as DHTML as CSS is also one part of the DHTML family that you use to enhance your page.
CSS usage:
1)Inline style sheet.
2)Embedded style sheet.
3)External(linked) style sheet.
NSS http://www.unitronics.com
[This message has been edited by NSS (edited 20 February 2000).]
NSS posted this at 05:16 — 21st February 2000.
They have: 488 posts
Joined: Feb 2000
Can anyone define whether this is a Static or Dynamic html page.
It uses Dynamic text style and some JavaScript. http://www.unitronics.com/dts.htm
NSS http://www.unitronics.com
Quote:
1)Dynamic HTML is not about server-side scripts, Java applets, or animated GIF images. All of these can acomplish nifty things on their own, except for changing the content of the Web page without a return trip to the server.
2)Dynamic HTML is about grabbing hold of any element on the page, at any time after the page has downloaded, and changing its appearance, content, or location on the page.This includes a lot of neat things, such as dragging images from one place to another or expanding and collapsing documents that provide instant results to a user.
The above was copied from the book:
Dynamic HTML in a WEEK by Bruce Campbell and Rick Darnell
[This message has been edited by NSS (edited 21 February 2000).]
[This message has been edited by NSS (edited 21 February 2000).]
[This message has been edited by NSS (edited 21 February 2000).]
Suzanne posted this at 07:36 — 21st February 2000.
She has: 5,507 posts
Joined: Feb 2000
With all due respect, that is like saying that a wheel is a car.
Suzanne
------------------
Zero Cattle
Suzanne
Tables DeMystified
Suzanne posted this at 20:16 — 21st February 2000.
She has: 5,507 posts
Joined: Feb 2000
Well, that page has CSS and JavaScript on it, though it doesn't work. So the combination of CSS and JavaScript that would appear to be supposed to be changing the text would be dynamic.
However CSS can be used for other things that aren't dynamic, much as wheels can be for trucks, cars, bikes, bicycles, toys, watches, washing machines, et cetera...
As I said before, DHTML is using different languages to achieve interactivity (yes, without reloading a page, you are correct), but each of those languages is not part of DHTML, DHTML is the combination of those languages.
By the way, on the page you mentioned, you should have <style type="text/css"> for the CSS so it works properly and it should be within the <head></head> tags.
Generally the JavaScript needs to be before the things it effects, and usually in the <head></head> tags as well.
You can't have a tag open in the <head> tag and close in the <body> tag -- that's a wicked nesting error, and for a font tag, it's pointless, anyway.
Anyway, yeah, it would be dynamic if it worked.
Suzanne
------------------
Zero Cattle
Suzanne
Tables DeMystified
Anonymous posted this at 14:44 — 22nd February 2000.
They have: 5,633 posts
Joined: Jan 1970
Why does it matter if it is JavaScript or DHTML?
The bottom line is that it works.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.