Announcement

Collapse
No announcement yet.

Why is my link not working?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Why is my link not working?

    I am trying to add an ad banner but it comes up as a broken image. Here is my code:

    <A HREF="http://www.mysite.com/public_html/forum/images/misc/AdBanner.gif"></A>

    I uploaded the image to my misc folder. What is wrong with my code?

  • #2
    it should be:
    Code:
    <a href="http://www.site.you.want.to.link.to/path/to/page.php" title="link description goes here"><img src="forums/images/misc/AdBanner.gif" alt="Ad Banner" /></a>
    Best Regards,
    Andy Huang

    Comment


    • #3
      Originally posted by Alfarin View Post
      it should be:
      Code:
      <a href="http://www.site.you.want.to.link.to/path/to/page.php" title="link description goes here"><img src="forums/images/misc/AdBanner.gif" alt="Ad Banner" /></a>
      Yes and in your case the correct code should be <A HREF="http://www.mysite.com/forum/images/misc/AdBanner.gif"></A>

      public_html/ --> is not required.
      www.christianforumsite.com
      sigpic

      Comment


      • #4
        I used these and they both come up as broken images. I know the file is in my misc folder. I even tried using an image from an online image hosting company with no luck.

        Comment


        • #5
          The one posted by jeffinj is missing the <img> tag and is hence not going to show any image. Here is my code again:
          Code:
          [COLOR="Pink"]<a href="[/COLOR][B][COLOR="Red"]http://www.site.you.want.to.link.to/path/to/page.php[/COLOR][/B][COLOR="Pink"]" title="link description goes here">[/COLOR]<img src="[B][COLOR="Blue"]forums/images/misc/AdBanner.gif[/COLOR][/B]" alt="Ad Banner" />[COLOR="Pink"]</a>[/COLOR]

          The stuff in red needs to be replaced with a valid link of where you want the link to go to. If you don't want a link, then remove everything with a reddish color (IE: things in red and in pink).

          The stuff in blue should be replaced with either a relative path or an absolute path to your image. An absolute path is like http://www.yoursite.com/forums/images/misc/AdBanner.gif an relative path is like /images/misc.AdBanner.gif. To figure out if you have the correct absolute path, just copy and paste it into your browser's address bar and hit enter. If the image comes up, then you are doing it right; if not, then you're doing it wrong
          Best Regards,
          Andy Huang

          Comment

          Related Topics

          Collapse

          Working...
          X