GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   php coders need a lil help (https://gfy.com/showthread.php?t=910658)

fris 06-15-2009 06:39 AM

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>';
having trouble with the onmouseover printing it, needs to be in 'thumb.jpg'

in quotes

mOrrI 06-15-2009 06:49 AM

check what output code it gives you...?

fris 06-15-2009 07:19 AM

it gives me

Code:

onMouseOver="showThumbnail(thumb.jpg,event)"
what i need is

Code:

onMouseOver="showThumbnail('thumb.jpg',event)"

woj 06-15-2009 07:27 AM

try this:
onMouseOver="showThumbnail(\'' . $thumb . '\',event)"

Brujah 06-15-2009 07:29 AM

Try something like this maybe, could be easier to read and see for you anyway

Code:

$content = sprintf('<li id="thumb"><a href="%s"
onMouseOver="showThumbnail(\'%s\',event)"
onMouseOut="closeThumbnail()"
rel="bookmark" title="Permanent Link: %s">%s</a></li>',
get_permalink(),
$thumb,
the_title('','',FALSE),
the_title('','',FALSE)
);


fris 06-15-2009 07:55 AM

Quote:

Originally Posted by woj (Post 15960519)
try this:
onMouseOver="showThumbnail(\'' . $thumb . '\',event)"

nope gives 500 error

fris 06-15-2009 08:02 AM

sprintf version works, thanks

Mutt 06-15-2009 08:45 AM

Quote:

Originally Posted by woj (Post 15960519)
try this:
onMouseOver="showThumbnail(\'' . $thumb . '\',event)"

fail http://www.bratcash.com/gfy/icq_bored.gif

nation-x 06-15-2009 08:52 AM

sex of the butt

woj 06-15-2009 08:57 AM

Quote:

Originally Posted by Mutt (Post 15960770)

:1orglaugh
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...

ExLust 06-15-2009 09:34 AM

Great help.

Robocrop 06-15-2009 09:40 AM

how does it look when working? :)

fris 06-15-2009 11:33 AM

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