Results 1 to 3 of 3

Thread: Can't find script

  1. #1
    Join Date
    Dec 2005
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Can't find script

    I am looking for an image mouseover script that will display the text I input in the code when you mouseover the image, then disappear when you mouse away. I need the text to appear below the table (containing the 4 images I have now).

    www.talkjesus.com

    See right side of the shoutbox on home page. I need the text to appear strictly below the 4 images, centered anytime you mouseover any of the 4 images.

    Thanks in advance!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,925
    Thanks
    43
    Thanked 3,190 Times in 3,154 Posts
    Blog Entries
    12

    Default

    Those are 'smilies' and the code for them is dynamically generated either by the forum software's server side language or by its javascript or more likely, both. To give each one a mouseover event, it would be best to do so in the places that their other attributes are assigned in the forum software, wherever that is. You could do something like:

    Code:
    onmouseover="document.getElementById('displayarea').innerHTML='Love'"
    for the heart one might work, depending upon how it is created in the DOM. Assigning a function might be required though:

    Code:
    onmouseover=function(){
    document.getElementById('displayarea').innerHTML='Love'
    }
    You would have to assign the id of 'displayarea' to the element where you want these messages to appear and also construct equivalent onmouseout events to return the text to whatever it should be in the 'resting' state, or blank (probably the paragraph (<p>) that currently says "You must be registered and confirmed active account to use the shoutbox " is the target for these text if so, I'd give it the id). Finding where in the code to do this could be hard. If you would be happy just having it work via javascript, a script could be written to identify each of these smilies by their alt or src attributes and assign mouse events that way but, it would have to be an onload event. I see you have numerous scripts on the page already so there could be conflicts even using add event handlers. But it would be worth a shot. Let me know first if you know or can find where in the forum code the smilies get assigned their src and alt attributes, as that would be the ideal place to assign mouse events.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2005
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Where do you get smilies from? These are regular gif images I made not smilies. Look on the left column menu under "entertainment" to see what I am talking about. Four images, colored with text tip only.

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
  •