SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Member Bishop's Avatar
    Join Date
    Jan 2002
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with iFrame

    Hi I have an advertiser that gave me code to run their banners and it is in an iFrame. For some reason when I put this code on my site the banner shows up, but it kills evrything below it. In other words the page does not load beneath the banner.

    I'm wondering if there is something wron with the code. I'm posting it here to see if someone might be able to spot the problem. I have also emailed the advertiser about this.

    <IFRAME SRC="http://advertiserssite.com/?DC=Mysite.com+Top+468&DH=Y&TARGET=_top" HEIGHT="60" WIDTH="468" SCROLLING="NO" MARGINWIDTH="0" MARGINHEIGHT="0" FRAMEBORDER="0" VSPACE="0" HSPACE="0">
    <SCRIPT LANGUAGE="JavaScript">document.write('<SCR'+'IPT LANGUAGE="JavaScript" SRC="http://advertiserssite.com/?DC=Mysite.com+Top+468&JS=Y&TARGET=_top"></SCR'+'IPT>');</SCRIPT>
    <NOSCRIPT>
    <A HREF="http://advertiserssite.com/?SHT=Mysite.com+Top+468" TARGET="_top"><IMG SRC="http://advertiserssite.com/?SIT=Mysite.com+Top+468&SC=Y" HEIGHT="60" WIDTH="468"></A>
    </NOSCRIPT>

    Thanks to whomever can help!

    Edit: Mods, I just realized this probably is not the correct forum for this post, I apologize and please feel free to move it.
    Last edited by Bishop; Nov 17, 2002 at 22:19.

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <IFRAME SRC="http://advertiserssite.com/?DC=Mysite.com+Top+468&DH=Y&TARGET=_top" HEIGHT="60" WIDTH="468" SCROLLING="NO" MARGINWIDTH="0" MARGINHEIGHT="0" FRAMEBORDER="0" VSPACE="0" HSPACE="0">Your browser does not support IFrames</IFRAME>
    <SCRIPT LANGUAGE="JavaScript">document.write('<SCR'+'IPT LANGUAGE="JavaScript" SRC="http://advertiserssite.com/?DC=Mysite.com+Top+468&JS=Y&TARGET=_top"></SCR'+'IPT>');</SCRIPT>
    <NOSCRIPT>
    <A HREF="http://advertiserssite.com/?SHT=Mysite.com+Top+468" TARGET="_top"><IMG SRC="http://advertiserssite.com/?SIT=Mysite.com+Top+468&SC=Y" HEIGHT="60" WIDTH="468"></A>
    </NOSCRIPT>
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  3. #3
    SitePoint Member Bishop's Avatar
    Join Date
    Jan 2002
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks beetle that helped, but not completely. I can now see the banner and it doesn't kill the rest of the page. However, now for some reason there are two banners placed side by side.

    Any idea how to get rid of the second banner?

  4. #4
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm, looks like you can take your pick from the two...

    <!-- Choice # 1 -->
    <IFRAME SRC="http://advertiserssite.com/?DC=Mysite.com+Top+468&DH=Y&TARGET=_top" HEIGHT="60" WIDTH="468" SCROLLING="NO" MARGINWIDTH="0" MARGINHEIGHT="0" FRAMEBORDER="0" VSPACE="0" HSPACE="0">Your browser does not support IFrames</IFRAME>
    <!-- End Choice #1 -->

    <!-- Choice #2 -->
    <SCRIPT LANGUAGE="JavaScript">document.write('<SCR'+'IPT LANGUAGE="JavaScript" SRC="http://advertiserssite.com/?DC=Mysite.com+Top+468&JS=Y&TARGET=_top"></SCR'+'IPT>');</SCRIPT>
    <NOSCRIPT>
    <A HREF="http://advertiserssite.com/?SHT=Mysite.com+Top+468" TARGET="_top"><IMG SRC="http://advertiserssite.com/?SIT=Mysite.com+Top+468&SC=Y" HEIGHT="60" WIDTH="468"></A>
    </NOSCRIPT>
    <!-- End Choice #2 -->

    I suppose if you didn't want an iframe, then you'd use #2, and vice versa
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  5. #5
    SitePoint Member Bishop's Avatar
    Join Date
    Jan 2002
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Doooh! That was easy enough for someone that knows better.

    I thought it was all one code.

    Anyway it works great now. Thank you this was driving me crazy!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •