How can I do this using JavaScript?

Discussion in 'JavaScript' started by naieem_ilu, Jan 8, 2009.

  1. #1
    Please take a look at the following links...

    https://www.neobux.com/?u=v

    OR

    http://ppclix.com/ad.browse.html

    ... when we click an advertisement, an image/text pops out saying "Click the red ball to view the advertisement"... how can I do it? Can someone please help me out?

    [​IMG]

    Please help me out guys !

    Regards !
    :):):)
     
    naieem_ilu, Jan 8, 2009 IP
  2. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #2
    It looks like, when the user clicks a link, javascript puts a red ball image in a random location within a certain range of points in the box, and puts the url on that ball.

    Just create a function in javascript to place the ball image in a random position inside of a specified object and which url it should link to.
     
    crath, Jan 8, 2009 IP
  3. naieem_ilu

    naieem_ilu Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Can you please help me with the code? Honestly I am not familiar with JavaScript... :(
     
    naieem_ilu, Jan 8, 2009 IP
  4. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #4
    But is what I described what your looking for?
     
    crath, Jan 9, 2009 IP
  5. naieem_ilu

    naieem_ilu Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yes crath... I think that is what I need... :)
     
    naieem_ilu, Jan 9, 2009 IP