/    Sign up×
Community /Pin to ProfileBookmark

2 scripts – img map & quick images

I have 2 scripts i need :

  • 1. One is, when a user clicks on part of an image map, i want it to tell the user how many times he/she has clicked on it.
  • Also the second one is

    How can i get the following to work?

  • 2. I have 3 images on a page. When one is clicked on, i want a little star shaped symbol (an image) appear with a clicking sound (preferably .wav file) and then disapear again.
  • So basically it pops up with a click then disapears.

    Any scripts/codes anyone????????
    Thankx

    to post a comment
    JavaScript

    2 Comments(s)

    Copy linkTweet thisAlerts:
    @HyperciteFeb 24.2004 — Hi

    Have you tried looking at some java script pages?

    Well ill give you some pages for javascripts and DHTML.

    www.javascriptkit.com

    www.dynamicdrive.com

    www.javascriptcity.com


    www.javascriptmadeeasy.com

    www.javascript.com

    http://javascript.internet.com/

    I have heard that some people hav a hard time navigating these pages but just look around and you should find what you need.

    Cheers
    Copy linkTweet thisAlerts:
    @chrizauthorFeb 25.2004 — I do find it a bit hard to navigate through the sites, but i was just wondering if i could have i code, something like

    function startclick() {

    document.img.src="star.jpg";

    }

    <img onClick="startclick()" name="img">

    But. obviously it changes an image. i want an image to pop up not in it's own window plus a click sound then they both disapear at the same timewaiting for the next click. Any ideas any-one??
    ×

    Success!

    Help @chriz spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.2,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,
    )...