You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Hi,
I am trying to include the following code in a product detail display but it just stops the page displaying so there is obviously a syntax error somewhere, any suggestions how I should write the code? It works fine in the skin.php but not in the product detail display.
print'<a class="tooltip" href="tooltip/info/sv45.html#div2" onmouseover="tooltip.ajax(this, 'tooltip/info/sv45.html#div2');" onclick="return false;">text or image here</a>' . $eol;
Last edited by nigel (06-22-2015 10:06:58)
Offline
print '<a class="tooltip" href="tooltip/info/sv45.html#div2" onmouseover="tooltip.ajax(this, \'tooltip/info/sv45.html#div2\');" onclick="return false;">text or image here</a>' . $eol;
Offline
Not sure where you are placing it, but make sure it is enclosed in PHP tags.
<?php print'<a class="tooltip" href="tooltip/info/sv45.html#div2" onmouseover="tooltip.ajax(this, 'tooltip/info/sv45.html#div2');" onclick="return false;">text or image here</a>' . $eol; ?>
Offline
thanks everyone for your help, it was the single quotes that were causing the issue.
Offline