Jump to content

Can anyone help with this please


Greystoke

Recommended Posts

How do I change the img src in

 

 

        echo '                    <td class="dataTableContent" valign="middle" height="15">
	<script language="JavaScript" type="text/javascript">
	<!--
	document.write("<span id=\"update_totals['.$i.']\"><a href=\"javascript:setCustomOTVisibility(\'update_totals['.($i+1).']\', \'visible\', \'update_totals['.$i.']\');\"><img src=\"order_editor/images/plus.gif\" border=\"0\" alt=\"' . IMAGE_ADD_NEW_OT . '\" title=\"' . IMAGE_ADD_NEW_OT . '\"></a></span>");
	//-->
        </script></td>' . "\n";

 

to have this <?php echo tep_image(DIR_WS_IMAGES . '../order_editor/images/plus.gif'); ?>

Link to comment
Share on other sites

The bigger question is why your using document.write() to write the code to the browser in the first place. Not to mention your wrapping your js in <!-- --> comment tags. Do you actually know why they are there? They haven't been needed since netscape 2.*

Link to comment
Share on other sites

document.write("<span id=\"update_totals['.$i.']\"><a href=\"javascript:setCustomOTVisibility(\'update_totals['.($i+1).']\', \'visible\', \'update_totals['.$i.']\');\"><img src=\"' . tep_image(DIR_WS_IMAGES . '../order_editor/images/plus.gif') . '" border=\"0\" alt=\"' . IMAGE_ADD_NEW_OT . '\" title=\"' . IMAGE_ADD_NEW_OT . '\"></a></span>");

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.