Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

How to link a photo in the panel

Asked Modified Viewed 2,140 times
I
icrinkle
I
  • Newbie, joined since
  • Contributed 1 post on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

OK I'm having a slight problem. I have a sponsor so I made a panel on the right had side and added their banner but having trouble finding how to link the banner to their site.

The code I have so far works but just need the link code so people can click on the banner and it will take them to their site.

Here is the code I'm using....

openside("<center>Advertisement<center>");
echo "<center><img src='http://www.happynappyradio.co.uk/home/images/advertiseere.jpg' style='margin:5px' width='120px'><br>";
closeside();

It would be fantastic if anyone can help.

All the Best.
0 replies

1 post

J
Joe Kriz
J
  • Senior Member, joined since
  • Contributed 281 posts on the community forums.
  • Started 39 threads in the forums
answered
Senior Member

Just like standard .html

You need the <a href='addresshere'> like this below

echo "<center><a href='addresshere'><img src='http://www.happynappyradio.co.uk/home/images/advertiseere.jpg' style='margin:5px' width='120px' border='0' alt='' /></a></center><br>";
closeside();


Don't forget to end your </center> as you did in your original post.
Also the img needs a space and a / to end the img like shown above.
And even more, you should have border='0' and alt='' to be compliant with many browsers etc...
Edited by Joe Kriz on 04-12-2008 05:05,
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 2 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet