...

View Full Version : (Easy enough) Please help join this two codes



basketmen
08-04-2008, 03:31 PM
Please help me join this two codes, i cant get working code, I want to make the link hide from bar



First code


<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a>


Second code


onMouseOver="window.status=''; return true;" onMouseOut="window.status='';







i had try like this, but this wrong, its not working


<a href=\"showthread.php?t="+threads[x].threadid+"\ onMouseOver=\"window.status=\''; return true;" onMouseOut=\"window.status=\''; ">"+threads[x].title+"</a>






please share your knowledge guys :thumbsup:

Fumigator
08-04-2008, 04:19 PM
I think you need a primer on how to build a string in PHP. Try these links first:

http://us2.php.net/manual/en/language.types.string.php

http://us2.php.net/manual/en/ref.strings.php

abduraooft
08-04-2008, 04:25 PM
Also, no need to worry about changing the status bar, modern browsers do not support this!

oesxyl
08-04-2008, 11:54 PM
- a variable in php must start with $, your code seems to be javascript
- onMouseOut and onMouseOver must be lowercase
- if you combine 'mistery navigation' with hiding url in status bar navigation on your site will be a pain. What's missing is to redefine the cursor to be same way all the time, :)
- the simplest way to join this to will be:


<a onmouseout=\"window.status=''; return true;\" onmouseover=\"window.status=''; return true;\" href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a>

regards



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum