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
https://forums.phpfreaks.com/topic/93181-quick-syntax-question/
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
https://forums.phpfreaks.com/topic/93181-quick-syntax-question/#findComment-477387
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
https://forums.phpfreaks.com/topic/93181-quick-syntax-question/#findComment-477402
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.