Speed111 Posted August 1, 2010 Posted August 1, 2010 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:
MrPhil Posted August 1, 2010 Posted August 1, 2010 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.
germ Posted August 1, 2010 Posted August 1, 2010 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 >
Speed111 Posted August 2, 2010 Author Posted August 2, 2010 Thanks for the help. I cant believe I missed that. Looks like one too many beers was my problem ;)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.