Im trying to rewrite a link with a href function. I need to parse a query string within it ('+tid')
But all attempts Have falied. The current onclick/ link function
is attached to my forums 'replys' number colum in forum veiw' {i have no direct access}
it appears in the staus bar on hover as
where '428 is the tid (topic id).
I want to write a href link to do this (elsewhere in html) and add the tid of whatever topic
the page is currently on.
see site for clarification (click the 'replies' number next to a title)
http://inny.ipbfree.co m/index.php?showf orum=1
click on any topic, and see a mail href link above. I want to add the who_posted function href there, so that whatever topic your on, the who posted box will work.
code is {no direct access}
Im not sure to write the new link to include the extra function of adding the topic id (tid)
i tried a few variations on
and i thought it might be the quotes, i tried
No joy
then i tried 2 functions
What am I doing wrong?
please assist?
But all attempts Have falied. The current onclick/ link function
Code:
<a href="java script:who_posted();">Who Posted?</a>
it appears in the staus bar on hover as
Code:
<a href="java script:who_posted(428);">Who Posted?</a>
I want to write a href link to do this (elsewhere in html) and add the tid of whatever topic
the page is currently on.
see site for clarification (click the 'replies' number next to a title)
http://inny.ipbfree.co m/index.php?showf orum=1
click on any topic, and see a mail href link above. I want to add the who_posted function href there, so that whatever topic your on, the who posted box will work.
code is {no direct access}
Code:
<script language='javascript' type="text/javascript"> <!-- function who_posted(tid) { window.open("http://inny.ipbfree.com/index.php?s=&act=Stats&CODE=who&t="+tid, "WhoPosted", "toolbar=no,scrollbars=yes,resizable=yes,width=230,height=300"); } //--> </script>
i tried a few variations on
Code:
<a href="java script:window.open("http://inny.ipbfree.com/index.php?s=&act=Stats&CODE=who&t="+tid, "WhoPosted", "toolbar=no,scrollbars=yes,resizable=yes,width=230,height=300");>Who Posted?</a>
Code:
<a href="java script:window.open('http://inny.ipbfree.com/index.php?s=&act=Stats&CODE=who&t='+tid, 'WhoPosted', 'toolbar=no,scrollbars=yes,resizable=yes,width=230,height=300')";>Who Posted?</a>
No joy
then i tried 2 functions
Code:
<a href="java script:who_posted(tid);window.open('http://inny.ipbfree.com/index.php?s=&act=Stats&CODE=who&t='+tid, 'WhoPosted', 'toolbar=no,scrollbars=yes,resizable=yes,width=230,height=300')";>Who Posted?</a>
please assist?
Comment