![]() |
php coders need a lil help
Code:
$content = '<li id="thumb"><a href="' . get_permalink() . '" onMouseOver="showThumbnail(' . $thumb . ',event)" onMouseOut="closeThumbnail()" rel="bookmark" title="Permanent Link: ' . the_title('','',FALSE) .'">' . the_title('','',FALSE) . '</a></li>'; in quotes |
check what output code it gives you...?
|
it gives me
Code:
onMouseOver="showThumbnail(thumb.jpg,event)" Code:
onMouseOver="showThumbnail('thumb.jpg',event)" |
try this:
onMouseOver="showThumbnail(\'' . $thumb . '\',event)" |
Try something like this maybe, could be easier to read and see for you anyway
Code:
$content = sprintf('<li id="thumb"><a href="%s" |
Quote:
|
sprintf version works, thanks
|
Quote:
|
sex of the butt
|
Quote:
he probably used " instead of ''... (2 single quotes vs 1 double quote) but all good, my fault, I didn't make it entirely obvious which ones needs to be used... |
Great help.
|
how does it look when working? :)
|
hit me up robocrop i will show you the plugin
|
All times are GMT -7. The time now is 07:59 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123