[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
www.dhtmlgoodies.com • View topic - how to insert in a html quote a quote without problem
Advertisement

how to insert in a html quote a quote without problem

Moderators: Calcifer, slothy

how to insert in a html quote a quote without problem

Postby wittymonkey » Fri May 11, 2007 9:16 pm

Hi all,

I am new to this forum , so first Hi all :)

I am using a script from dhtmlgoodies that works great.
The only problem is that I am tring to change this line :


$rollovers .= '<a href="site.php?id=' . $val . '" onmouseout="hideTooltip()" onmouseover="showTooltip(event,\'<h3>' . stripslashes($row[siteName]) . '</h3><p>';

into this one :

$rollovers .= '<a href="site.php?id=' . $val . '" onmouseout="hideTooltip()" onmouseover="showTooltip(event,\'<h3 valign="TOP">' . stripslashes($row[siteName]) . '</h3><p>';

and the "" ( quotes ) around TOP are messing up the argument of showTooltip ( it' struncating it).

showTooltip works like this :

dhtmlgoodies_tooltip.innerHTML = tooltipTxt;

So my question is : how to include " ( quotes) in tooltipTxt as a character and not as a "end of statement" sign.

Thanks !

George
wittymonkey
 
Posts: 3
Joined: Fri May 11, 2007 9:12 pm

Postby wittymonkey » Fri May 11, 2007 10:23 pm

I tried of course nesting with the escape character :

" becomes \"

Didn't work ...


George
wittymonkey
 
Posts: 3
Joined: Fri May 11, 2007 9:12 pm

Postby kgregg » Sat May 12, 2007 3:16 am

Try a double escape \\ . You need an escape in the output and php is probably eating it.
kgregg
 
Posts: 95
Joined: Thu Aug 17, 2006 12:55 am
Location: Bandon OR USA

Postby wittymonkey » Sun May 13, 2007 7:20 pm

wittymonkey
 
Posts: 3
Joined: Fri May 11, 2007 9:12 pm


Return to General questions

Who is online

Users browsing this forum: No registered users and 4 guests

cron