Page 1 of 1
Wery easy, but ? look at this...
Posted: Wed Aug 16, 2006 5:37 pm
by spamyboy
How could I make this work ?
Code: Select all
<a href="#" onclick="showDiv('targetDiv');return false; go('http://www.example.com');" target="_blank">
Posted: Wed Aug 16, 2006 5:57 pm
by feyd
¿qué?
I'd like to make a suggestion: you need to spend a bit more time explaining what you're trying to do and what you've tried in your threads. Very very few of your posts every make any sense until you've replied two or more times.
..and there's this:
Posted: Wed Aug 16, 2006 6:07 pm
by spamyboy
feyd | Please use Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
sorry
well here is alitle bit more of code:
[syntax="html"] <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href="#" onclick="showDiv('targetDiv');return false; window.open('http://pleas.hostingas.in/refer.php', 'newWindow');">click here to see download links</a></td>
</tr>
<tr>
<td height="2"></td>
</tr>
<tr>
<td><div align="center" style="font-size:9px;">this link could lead to your website ! <a href="index.php?do=feedback">Contact us</a></div></td>
</tr>
<tr>
<td height="2"></td>
</tr>
<tr>
<td align="center"><div id="targetDiv" style="display:none;">hiddent text</div></td>
</tr>
</table>
I want to make, link that would unhide that div & open new link, they work if I use them like:
Code: Select all
<a href="#" onclick="showDiv('targetDiv');return false;>click here to see download links</a>
or
Code: Select all
<a href="#" onclick="window.open('http://pleas.hostingas.in/refer.php', 'newWindow');">click here to see download links</a>
but when I connect them
Code: Select all
<a href="#" onclick="showDiv('targetDiv');return false; window.open('http://pleas.hostingas.in/refer.php', 'newWindow');">click here to see download links</a>
they just stop to work
feyd | Please use[/syntax]Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Posted: Wed Aug 16, 2006 6:25 pm
by feyd
You see that "return false;" in the bit of Javascript there? Move it after the window.open call.
Posted: Wed Aug 16, 2006 6:39 pm
by spamyboy
Thank's man it realy works.