SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Aug 2000
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi. I have too many OnMouseOver's/out's on one of my images/ this is what basically I am using:

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>

    &lt;MAP NAME="comedy"&gt;
    &lt;AREA SHAPE="circle" COORDS="100,100,100,100" HREF="flash.html"
    TARGET="_blank" onMouseOver="playSound(0)" onMouseOut="stopSound(0)"&gt;
    &lt;/MAP&gt;

    &lt;NOHREF&gt;
    &lt;img NAME="img1" USEMAP="#comedy" border="0"
    SRC="../../images/multimedia/comedy/flash_off.gif"
    onMouseOver="imgOn('img1')" onMouseOut="imgOff('img1')"&gt;&lt;/A&gt;

    [/code]

    Please can someone explain to me, how I could get both the status bar MSG/Img and sound to appear, as at the moment, I can only have 2 of the 3 (IMG/SOUND).

    Thanks, Bond.

    &lt;&lt;&lt; Edited code to fit on smaller screens &gt;&gt;&gt;

    [This message has been edited by wluke (edited August 18, 2000).]

  2. #2
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Yeah.. Create one function that can be used as a wrapper for your Image, Sound and Status bar calls.

    Then a simple call could be:
    Mouseover (image, sound, status)

    You should right it so that any parameter with a empty string should be ignored.

    ------------------
    Wayne Luke - Sitepoint Forums Administrator
    Digital Magician Magazine - MetaQuark Creations (Coming Soon)
    wayne@sitepoint.com


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
  •