SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru davedibiase's Avatar
    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!

  2. #2
    SitePoint Wizard creole's Avatar
    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

  3. #3
    SitePoint Guru davedibiase's Avatar
    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!

  4. #4
    SitePoint Addict -TheDarkEye-'s Avatar
    Join Date
    Feb 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 = "";
    }
    the text container would need the attribute: id="textCont"

    also, the area tags for the image map would require the following tags: onmouseover="replaceText(1);" onmouseout="killText();"

  5. #5
    SitePoint Guru davedibiase's Avatar
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •