GetDotted Domains

Viewing Thread:
"JS Question"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Fri 18/10/02 at 22:02
Regular
Posts: 787
I've just been trying to get a rollover script I wrote myself (yes, not copied :-O) to work, but I don't know how to refer to a bgcolor attribute in a tag.

I was thinking something like document.td1.style.backgroundcolor if is "td1" in the name attribute.

Cheers
Mon 21/10/02 at 19:29
Regular
"You've upset me"
Posts: 21,152
you cooould take the very long winded approach and make the link an image, hen make another the same but with the background a different colour, then just do a simple rollover for the highlighting.

Long winded and involves making silly images but it'd work.
Fri 18/10/02 at 22:25
Regular
Posts: 10,437
Thanks but I really want to know if there's a simple way to get my script working.

Thanks again.
Fri 18/10/02 at 22:22
Regular
Posts: 10,437
Cheers :-)

I thought hand worked on Netscape as well, lucky you told me!
Fri 18/10/02 at 22:22
Regular
"l33t cs50r"
Posts: 2,956
Just on another thought... f your trying to change the colour of a by mouseover, you can do this in CSS without all that JS. All you need is to declare some "a" styles and apply them to the cells using css.

a.tdon:link (background:#xxxxxx font:arial colour:sameasbackground}
a.tdon:hover (background:#xxxxxx font:arial colour:sameasbackground}


In the tableL

texttexttexttext

It's late, but it's something like that.
Fri 18/10/02 at 22:16
Regular
"l33t cs50r"
Posts: 2,956
cursor='hand'

This only works in IE, to work in NS(all versions) you have to declare it as cursor="pointer".. this is also technically a style attribute and should be: cursor:hand pointer

Just wanted to share something I picked up today!
Fri 18/10/02 at 22:13
Regular
Posts: 10,437
Must add, onmouseover has color_change(1) and onmouseout has color_change(0)
Fri 18/10/02 at 22:12
Regular
Posts: 10,437
All I want to do is try to get this script working:



I've never really done a proper script, I know there's a much easier way to do it, it's just i've tried almost everything and I want to get it working. Know if there's anyway I could get it working only by changing the document.td1?

Cheers
Fri 18/10/02 at 22:07
Regular
"l33t cs50r"
Posts: 2,956
Try using CSS to style the table and use ID to refer to the Class...

Still a little vague on this but have seen it working. Much easier to do in CSS/JSS as the references are easier to create. If i can find the script I'll post it.
Fri 18/10/02 at 22:02
Regular
Posts: 10,437
I've just been trying to get a rollover script I wrote myself (yes, not copied :-O) to work, but I don't know how to refer to a bgcolor attribute in a tag.

I was thinking something like document.td1.style.backgroundcolor if is "td1" in the name attribute.

Cheers

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

First Class!
I feel that your service on this occasion was absolutely first class - a model of excellence. After this, I hope to stay with Freeola for a long time!
Many thanks!!
Registered my website with Freeola Sites on Tuesday. Now have full and comprehensive Google coverage for my site. Great stuff!!
John Shepherd

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.