Jump to content

Change button and link after click

- - - - -

  • Please log in to reply
2 replies to this topic

#1
ifeelcash

ifeelcash

    Newbie

  • Members
  • Pip
  • 2 posts
Hi all i wan change traffic in me website..
But not in classical style with that blind clicks and ppl go out from me website...

I need script what change the buttons after click.
like it..
without click : button picture /click 3x and play video/ --- and blind link
1click : change the button picture /click 2x and play video/ --- and blind link
2click : change the button picture /click 1x and play video/ --- and blind link
3click : change the button picture / play video / --- and right video link

If anyone know how make easy that. Big mean !


http://img207.images...4/kliknutia.jpg

Edited by ifeelcash, 19 January 2011 - 07:56 AM.


#2
ifeelcash

ifeelcash

    Newbie

  • Members
  • Pip
  • 2 posts
Posted Image

#3
xx3004

xx3004

    Newbie

  • Members
  • PipPip
  • 13 posts

ifeelcash said:

Hi all i wan change traffic in me website..
But not in classical style with that blind clicks and ppl go out from me website...

I need script what change the buttons after click.
like it..
without click : button picture /click 3x and play video/ --- and blind link
1click : change the button picture /click 2x and play video/ --- and blind link
2click : change the button picture /click 1x and play video/ --- and blind link
3click : change the button picture / play video / --- and right video link

If anyone know how make easy that. Big mean !


http://img207.images...4/kliknutia.jpg

Well basically I can suggest you this code (I don't get what ya mean really clearly)

First make up a button:

<span  id="theButton"><img src="PICTURE 1 LINK" onclick="return changeButton();"></span>


Next, make a changeButton() function that is in chart of changing the button value:

buttonStatus=0;

function changeButton(){

if(buttonStatus%3==0)

	{document.getElementById("theButton").innerHTML="<img src='PICTURE 2 LINK' onclick='return changeButton();'>"; buttonStatus++;}

else if(buttonStatus%3==1)

	{document.getElementById("theButton").innerHTML="<img src='PICTURE 3 LINK' onclick='return changeButton();'>"; buttonStatus++;}

else if(buttonStatus%3==2)

	{document.getElementById("theButton").innerHTML="<img src='PICTURE 1 LINK' onclick='return changeButton();'>"; buttonStatus++;}

}


That's the simple code I come up with. Have fun.

xx3004,




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users