GetDotted Domains

Viewing Thread:
"Website: Mouse over thing..."

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.

Wed 22/09/04 at 22:22
Regular
"Peace Respect Punk"
Posts: 8,069
Roight, so I'm trying to build this page where there's going to be smome graphics, and a block of text. When someone moves the mouse over one of the graphics I want the block of text to change to say some other stuff. I know I'm gonna have to do something involving the onMouseOver and onMouseOut, but I have no idea what, and don't have the ability to work it out myself...

So anyone with any ideas...?

Big thank you in advance.
Thu 23/09/04 at 09:45
Regular
"l33t cs50r"
Posts: 2,956
Oddly enough... I've been workingon something along a similar route. As you rollover the nav, a caption chanes per menu option;

would be something akin to this: (Ignore the labels)

function changeCap(num) {
var caption = new Array(7)
caption[0] = 'Welcome to Lea Manor High School';
caption[1] = 'Return to the Lea Manor High School homepage';
caption[2] = 'All about Lea Manor High School, including a message from the head and current vacancies';
caption[3] = 'Information for staff, pupils and parents about timetables, uniform, school rules and so on...';
caption[4] = 'Information on departments and curriculum subjects at Lea Manor High School';
caption[5] = 'All the latest news from Lea Manor High School';
caption[6] = 'How to get in touch with Lea Manor High School or to order a prospectus';
caption[7] = 'View upcoming events at Lea Manor High School';

var span_el = document.getElementById("bcaption"); // get reference to the SPAN element
var new_txt = document.createTextNode(caption[num]); // implement span_el.innerText = "a brand new bag"
span_el.replaceChild(new_txt, span_el.childNodes[0]);
}


in the HTML

Welcome to Lea Manor High School
Wed 22/09/04 at 22:31
Regular
"It goes so quickly"
Posts: 4,083
I think you may need to use the 'innerText' part of JavaScript, such as:

onmouseoover="BlockID.innerText = "Whatever you want to say";

.. but I haven't looked it up, just a guess from what I remember.
Wed 22/09/04 at 22:29
Regular
Posts: 4,279
You could just use an Alt tag.

Insert your Alternative Text Here

EDIT: That's not the answer you were looking for I know. However it's the simple way :P

You can use hide/show layers, however using too many will make the website much slower.
Wed 22/09/04 at 22:22
Regular
"Peace Respect Punk"
Posts: 8,069
Roight, so I'm trying to build this page where there's going to be smome graphics, and a block of text. When someone moves the mouse over one of the graphics I want the block of text to change to say some other stuff. I know I'm gonna have to do something involving the onMouseOver and onMouseOut, but I have no idea what, and don't have the ability to work it out myself...

So anyone with any ideas...?

Big thank you in advance.

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Just a quick note to say thanks for a very good service ... in fact excellent service..
I am very happy with your customer service and speed and quality of my broadband connection .. keep up the good work . and a good new year to all of you at freeola.
Matthew Bradley
Simple, yet effective...
This is perfect, so simple yet effective, couldnt believe that I could build a web site, have alrealdy recommended you to friends. Brilliant.
Con

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.