Hi Guys,
Hope you all are having a nice day!
Just need some help from you...
I have an html page wich have a javascript code ( I can't use php only html )
I needHTML Code:<a id="postos" href="#" onClick="open_new_window('http://touch.facebook.com/sharer.php?u=http:/mywebsite.com/cat1/p1.html'); return false;"><img src="http://img607.imageshack.us/img607/1881/shareo.png" width="60" height="18" border="0"></a>
I need to modify the link with a random attibute so if we reload the page it will give us another link to share
so when USER1 came to the page and click on the share button he will share the a random page:
http:/mywebsite.com/cat1/p1.html
when USER2 came to the page and click on the share button he will share the a random page:
http:/mywebsite.com/cat1/p2.html
when USER3 came to the page and click on the share button he will share the a random page:
http:/mywebsite.com/cat1/p3.html
when USER1 came to the page and click on the share button he will share the a random page:
http:/mywebsite.com/cat2/p1.html
when USER4 came to the page and click on the share button he will share the a random page:
http:/mywebsite.com/cat7/p5.html
when USER5 came to the page and click on the share button he will share the a random page:
http:/mywebsite.com/cat3/p2.html
when USER6 came to the page and click on the share button he will share the a random page:
http:/mywebsite.com/cat2/p1.html
.... etc
and so on
can you help me with this ( only javacript ( not php )


Reply With Quote
Bookmarks