Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cant get a .gif inside a box clickable ...


Speed111

Recommended Posts

Posted

Hello everyone,

 

I spent a great deal of time trying to get an animateg gif to be clickable so that you may transfered to my forum.

 

I created a new box (forum.php) inside the boxes folder and defined it. But I cant the code to work. Maybe someone see's something that I dont?

 

page is

 

http://synergicsolutions.pl/

 

and the code for forum.php is this:

 

<table width="100%" cellpadding="5" cellspacing="0" border=0>
       <tr>
        <td class="main" width=100% valign="top" align="right">
<?php
$mainpage_title = "Forum";
$mainpage_info = "<a href=forum/index.php title=’Forum’><img src=’/images/anime.gif’></a>";
 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
                                        'text'  => $mainpage_title );
 new infoBoxHeading($info_box_contents, true, true);

 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
                                         'text'  => $mainpage_info);
 new infoBox($info_box_contents);
?>
 </td>

<p>

Can anyone help:

Posted

So what does

<a href=forum/index.php title=’Forum’><img src=’/images/anime.gif’></a>

look like in the output HTML (browser View > Page source)? Is it there, but not working? Are those regular apostrophes ' (single quotation marks) you're using, or some sort of acute accent mark? Accent marks won't work. Change the line to

$mainpage_info = '<a href=forum/index.php title="Forum"><img src="/images/anime.gif"></a>';

and see if the HTML works now.

Posted

This works:

 

$mainpage_title = "Forum";
$mainpage_info = '<a href="forum/index.php" title="Forum"><img src="/images/anime.gif"></a>';
 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
                                        'text'  => $mainpage_title );
 new infoBoxHeading($info_box_contents, true, true);

 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
                                         'text'  => $mainpage_info);
 new infoBox($info_box_contents);

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...