Jump to content

Quick Syntax Question?


Solarpitch

Recommended Posts

Hey,

 

I am just looking to embed the mouseover command into this link. Can someone just take a look and see if its embedded correctly. I am not sure if it is. I think its a problem with the string inside the ddrivrtip function.

 

Cheers

 


<?php

echo "<a href='sign_out.php?logout=1' onMouseover='ddrivetip('Where do ya think your going?','yellow', 300)';  ONMOUSEOUT='hideddrivetip()';>Logout</a>";

?>

Link to comment
Share on other sites

If i remember from the last time i did this you will have to replace the ' for " and escape them  /"  inside the java function brackets - sorry has been a while.. Im sure someone will know.  I have some code at work that does this - I will post it tomorrow if no one comes up trumps for you!

 

Dave

 

Link to comment
Share on other sites

I am not getting into an argument... just dont have the time! But I would have thought a php syntax question would have been the PHP forum? Forget the javascript... the problem is with the string... if I replace the javascript with a string saying something esle.. would it then be valid for the php help forum

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.