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 need
[code=html]
<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 USER[COLOR=”red”]1
http:/mywebsite.com/cat[COLOR=”red”]1[COLOR=”red”]1
when USER[COLOR=”red”]2
http:/mywebsite.com/cat[COLOR=”red”]1[COLOR=”red”]2
when USER[COLOR=”red”]3
http:/mywebsite.com/cat1/p3.html
when USER[COLOR=”red”]1
http:/mywebsite.com/cat[COLOR=”red”]2[COLOR=”red”]1
when USER[COLOR=”red”]4
http:/mywebsite.com/cat[COLOR=”red”]7[COLOR=”red”]5
when USER[COLOR=”red”]5
http:/mywebsite.com/cat3/p2.html
when USER[COLOR=”Red”]6
http:/mywebsite.com/cat2/p1.html
…. etc
and so on
can you help me with this ( only javacript ( not php )