I'm trying to run a php script to replace certain text with an HTML element.
I think I have the script done correctly, here is an example.
<?php
$tooltip = "<a class="tutfx" onMouseover="ddrivetip('<div id=tutfx_tiptitle>Title</div><<hr width=100% height=1 /><img id=tutfx_tipimg src=tools/brush_tool.gif />Description','#E9ECF0','300')";
onMouseout="hideddrivetip()">Tutfx</a>";
$content = "Tutfx"
$content = eregi_replace("Tutfx", $tooltip, $content);
?>
So in this example, I'm trying to replace any text of 'Tutfx' with this tooltip HTML code.
I've already got the JavaScript that the HTML is dependant on.
But first of all, I would like to know if this code is correct.
And second of all, I would like to know how to use it, in other words, how do I tell the HTML document to use this script?
I've searched tutorials and resources and such, but seemingly I must be dumb lol. None of it makes sense to me.
Thanks in advanced to anyone who could help me hopefully.
It would be of great help if someone could kindly guide me through this on messanger.
Heres my contact info (even though it's already in my profile).
AIM: Demonslay335
MSN: Michael_Todd_335@yahoo.com
Yahoo: Michael_Todd_335@yahoo.com
