Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
(Easy enough) Please help join this two codes
Old 08-04-2008, 09:32 AM (Easy enough) Please help join this two codes
Skilled Talker

Posts: 78
Name: syu
Trades: 0
Please help me join this two codes, i cant get working code, I want to make the link hide from bar



First code

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

Second code

PHP Code:
onMouseOver="window.status=''; return true;" onMouseOut="window.status=''; 






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

PHP Code:
<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:
basketmen is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-04-2008, 10:44 AM Re: (Easy enough) Please help join this two codes
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Huh!? Where is the PHP? I don't see any PHP. What it looks like is JavaScript concatenation mixed up with regular HTML.

To put the array variables within the href, you do something like this:
PHP Code:
<a href="showthread.php?t=<?=threads[$x].$threadid?>" onMouseOver="window.status=''">

However, I doubt this is what you're asking. Those look like JavaScript variables also, the way you have them. I made them into PHP variables, but am probably wrong. Is there a bunch of code AROUND this little snippet that you're not letting us see??
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.

Last edited by wayfarer07; 08-04-2008 at 10:46 AM..
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 08-04-2008, 04:12 PM Re: (Easy enough) Please help join this two codes
Junior Talker

Posts: 3
Trades: 0
As wayfarer07 said, there is not much php. Although, here the string to output this from php:
Code:
<?php
    echo "<a href=\"showthread.php?t=".threads[$x].$threadid."\" onMouseOver=\"window.status=' '; return true;\" onMouseOut=\"window.status=' '; \">.threads[x].threadid.</a>";
?>
Note that instead of '', ' ' are used. This is to remove 'Done' label on mouse move. Note also that in regard to hrefs, this works in MSIE only. Opera and Firefox keep showing link destination.
dearhunter is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to (Easy enough) Please help join this two codes
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14763 seconds with 12 queries