logo-dw

Go Back   Dreamweaver Club Forums > Graphic Design > Web Design
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 06-12-2007, 06:37 PM   #1
mmeyboom
 
Join Date: Jun 2007
Posts: 6
Default Rollover problems, changing text?

Hi,
I know how to do the basic rollover but I was wandering is it possible to hover the mouse over an image and then for some text in the page to change (e.g. from plain to bold). Thanks for anyones help.

Mike.
mmeyboom is offline   Reply With Quote
Old 06-12-2007, 10:26 PM   #2
Karkar
Karkar's Avatar
 
Join Date: Apr 2007
Location: Melbourne, Australia
Posts: 173
Default

You mean text completely unrelated to that image or text in the same paragraph? Cos if you used css you could have the text apart of the same class as the image...
Karkar is offline   Reply With Quote
Old 06-12-2007, 10:53 PM   #3
mmeyboom
 
Join Date: Jun 2007
Posts: 6
Default

yep the text is apart from the image.
mmeyboom is offline   Reply With Quote
Old 06-12-2007, 10:59 PM   #4
Karkar
Karkar's Avatar
 
Join Date: Apr 2007
Location: Melbourne, Australia
Posts: 173
Default

hmm. Don't know to be honest. If the image and text are links you could just put them both between the same a href tags and edit the 'a' class in css. But if they're nowhere near eachother i can't tell ya what to do.

I'm sure oneof the dreamweaver gurus can!

Good luck
Karkar is offline   Reply With Quote
Old 06-13-2007, 06:23 AM   #5
Cary
Cary's Avatar
 
Join Date: Apr 2007
Location: San Diego, CA
Posts: 723
Default

Well, because of your question, I figured I would give it a try. Is this anything like what you have in mind?
Cary is offline   Reply With Quote
Old 06-13-2007, 07:17 AM   #6
Karkar
Karkar's Avatar
 
Join Date: Apr 2007
Location: Melbourne, Australia
Posts: 173
Default

exactly what's i'm talking about. Is that what you wanted to do? I'm not sure if that's the best/cleanest way to do it, but there's a thousand way to do anything. That's what I would have done if that's the effect I wanted to achieve.

It's really quite nice
Karkar is offline   Reply With Quote
Old 06-13-2007, 07:18 AM   #7
Karkar
Karkar's Avatar
 
Join Date: Apr 2007
Location: Melbourne, Australia
Posts: 173
Default

but of course there is the question of not wanting to be able to select the text??
Karkar is offline   Reply With Quote
Old 06-13-2007, 07:59 AM   #8
Cary
Cary's Avatar
 
Join Date: Apr 2007
Location: San Diego, CA
Posts: 723
Default

Yep, I don't know how to get around that.
Cary is offline   Reply With Quote
Old 06-13-2007, 09:12 AM   #9
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

create 2 styles (classes)

the first style is the look of the text before you mouseover. The second is what you want the text to look like when you mouseover. Assign the class1 to the div that your text is in and give the div an id
Code:
 
<div id="fontc">text text text text text text text text </div>
in Javascript you could write this...

Code:
 
function changeTex(){
 
a = document.getElementById('fontc');
 
a.className = "newclassname";
 
}
then on the link you could have this..
HTML Code:
 
<a href="#" onmouseover="changeTex()" >link</a>
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 06-13-2007, 09:41 AM   #10
mmeyboom
 
Join Date: Jun 2007
Posts: 6
Default

thanks everyone for your help, and thanks for the example Carry, just what I needed. Now I'll see if I can put all that into practice!
mmeyboom is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:37 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com