SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2008
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Red face Apparently you can do this with javascript? any help please?

    Say for example i have this code in my file 'index.php':

    Code:
    <? php
    
    echo '<iframe frameborder="no" scrolling="no" width="646px" height="64px" smartsize="false" marginheight="0" marginwidth="0" src="http://ads.rawclix.com/?bid=113&size=646x64"></IFRAME>';
    
    ?>
    which displays a banner with a link.

    ie. demo: http://db5602a2.fb.joyent.us/noname1.php


    Now what i want to know is there some code or script i can put at the end of my index.php file that will crawl the iframe and
    get the link of the banner which is created??

    Thanks

  2. #2
    We're from teh basements.
    Join Date
    Apr 2007
    Posts
    1,205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You don't use the "px" suffix in element attributes. That is a CSS unit specifier.

    Also, there is no standard (X)HTML attribute called "smartsize". That appears to be a proprietary AOL/Facebook attribute.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2008
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok, cool. But other then that can you stil help answer my question? thanks.

  4. #4
    We're from teh basements.
    Join Date
    Apr 2007
    Posts
    1,205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by claudfs View Post
    ok, cool. But other then that can you stil help answer my question? thanks.
    I would suggest using DOM methods, but I'm not sure that you can access the DOM in a page from one site (the ad server) from a page on another site (your site). My guess is that the browser's security model would prevent that.


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
  •