SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
-
May 20, 2002, 11:39 #1
- Join Date
- Aug 2001
- Location
- Toronto, Canada
- Posts
- 829
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
onMouseOver change my description TEXT!
I can't find this script anywhere. Could someone PLEASE provide me with a small, compact script that does the following:
I have a large image of all my products. I image mapped the images to their locations. I would like to have something where, if they put their mouse of the proper coordinate it changes the text beside the image (description text).
I don't require a sample, just the sraight code that ACUALLY works.
I used one off dhtmlcentral.com and it keeps on screwing up because of the stupid div features that come with it. I just need something SIMPLE.
Thanks A TON!||Dave Di Biase||
----------------------------------
"There are 2 secrets in life. 1) Never say everything you know."
GFXWARS - The ultimate graphics battle!
-
May 20, 2002, 15:24 #2
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Why was this psoted in the Cold Fusion forum? There's a javascript forum for this.
Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
-
May 20, 2002, 16:09 #3
- Join Date
- Aug 2001
- Location
- Toronto, Canada
- Posts
- 829
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
...
erm...ok..I thought this WAS the DHTML and javascript forum. Hehehehe whoops must have clicked the wrong button
Hehe oh well sorry about that.
Now someone PLEASE answer my question.||Dave Di Biase||
----------------------------------
"There are 2 secrets in life. 1) Never say everything you know."
GFXWARS - The ultimate graphics battle!
-
May 21, 2002, 00:57 #4
- Join Date
- Mar 2001
- Location
- canada
- Posts
- 286
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Code:var textArray = new Array(); textArray[1] = "some text"; textArray[2] = "some more text"; function replaceText(textVar) { document.getElementById("textCont").innerHTML = textArray[textVar]; } function killText() { document.getElementById("textCont").innerHTML = ""; }
also, the area tags for the image map would require the following tags: onmouseover="replaceText(1);" onmouseout="killText();"
-
May 21, 2002, 14:12 #5
- Join Date
- Aug 2001
- Location
- Toronto, Canada
- Posts
- 829
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
...
Excellent.
Absolute perfect coding. Small...compact...
Just what I was looking for.
Thanks a TON!||Dave Di Biase||
----------------------------------
"There are 2 secrets in life. 1) Never say everything you know."
GFXWARS - The ultimate graphics battle!
Bookmarks