SitePoint Sponsor

User Tag List

Results 1 to 9 of 9

Hybrid View

  1. #1
    SitePoint Enthusiast Digitalis83's Avatar
    Join Date
    Nov 2006
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Controlling your ads?

    Hey guys, i'm having this problem with my site, when I place the ad in my page it seems to delete everything under it. Is there a way I can maybe contain the ad so that it doesnt effect the rest of my page? I dont necessarily want to delete it, just stop it from deleting the rest of my page.

    if anyone has any ideas i'd appreciate it. Thank you.

  2. #2
    ¬.¬ shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    iFrame

    But I think i know why the ad is deleting this for is because it is using JavaScript and document.write
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  3. #3
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Got a link?

  4. #4
    The Mind's I ® silver trophy Dark Tranquility's Avatar
    Join Date
    Sep 2003
    Location
    KSA - UAE
    Posts
    9,457
    Mentioned
    8 Post(s)
    Tagged
    1 Thread(s)
    I won't advise the use of iframes!! can you show us the code or the page?

  5. #5
    SitePoint Enthusiast Digitalis83's Avatar
    Join Date
    Nov 2006
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for the help guys, but I think im just going to try and onLoad function and see what happens.

  6. #6
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dark Tranquility View Post
    I won't advise the use of iframes!!
    For ads? Why not?
    Simon Pieters

  7. #7
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It could be because the script uses document.write("<script>") but doesn't write an end tag ("</script>") so the rest of you page ends up being a "script". If so, you could use an empty script block after the ad's script so that that element's end tag will terminate the ad's script block...
    Simon Pieters

  8. #8
    ¬.¬ shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Heck I like it when ads are in iframes makes it so much easier to remove them from the page
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  9. #9
    The Mind's I ® silver trophy Dark Tranquility's Avatar
    Join Date
    Sep 2003
    Location
    KSA - UAE
    Posts
    9,457
    Mentioned
    8 Post(s)
    Tagged
    1 Thread(s)
    I don't use iframes for ads because if I wanted to rotate ads and use some contextual ads it won't produce the sought result. well that been said I usually prefer to have ads in a separate file then include them with PHP or anything else. that way they are easy to remove too!
    I just don't like iframes! even for ads !!


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
  •