SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    Village Idiot cgustaveson's Avatar
    Join Date
    May 2008
    Posts
    454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Showing a small image 16 x 16

    I have a page that displays nothing but a small php included 16 x 16 pixel image.

    Is there a way that I could use some sort of javascript script to show the image being displayed on that page on other websites?

    I currently use an iframe but some people have problems using iframes so I would to offer multiple methods to display the image. Most people would feel more secure using javascript but I wouldn't know where to start to show this.
    Smoke Lounge | Hookah Store and Community
    Shisha Tobacco
    SitePoint Users get 5% off use promo code s1t35p

  2. #2
    SitePoint Addict ArunB's Avatar
    Join Date
    Jun 2008
    Location
    Hyderabad
    Posts
    252
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you saying that you have an 16X16 image on your page, which will be displayed on other sites. Currently you are using iFrame for this purpose. Am I correct?

  3. #3
    Village Idiot cgustaveson's Avatar
    Join Date
    May 2008
    Posts
    454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ArunB View Post
    Are you saying that you have an 16X16 image on your page, which will be displayed on other sites. Currently you are using iFrame for this purpose. Am I correct?
    Yep, the image is served from a db so I cant just use an image src= so I cam lost at what to do, I was hoping there was a javascript method. By the way the image is the only thing on the page I am using to serve it from.
    Smoke Lounge | Hookah Store and Community
    Shisha Tobacco
    SitePoint Users get 5% off use promo code s1t35p

  4. #4
    SitePoint Addict ArunB's Avatar
    Join Date
    Jun 2008
    Location
    Hyderabad
    Posts
    252
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why can't you use src attribute? Create a image tag (either statically or using JS) and set it's src attribute to the URL which outputs image(which comes from database).

  5. #5
    Village Idiot cgustaveson's Avatar
    Join Date
    May 2008
    Posts
    454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I dont know JS....

    The image is included through a php include and it doesn't just use on image URL it constantly changes depending on the image being displayed.

    Like I said I have no clue about javascript, I can manage through php but javascript just doesn't seem to make much sense to me. I am learning it as I go but I don't have time to wait till I am well enough with it.
    Smoke Lounge | Hookah Store and Community
    Shisha Tobacco
    SitePoint Users get 5% off use promo code s1t35p

  6. #6
    Village Idiot cgustaveson's Avatar
    Join Date
    May 2008
    Posts
    454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Smoke Lounge | Hookah Store and Community
    Shisha Tobacco
    SitePoint Users get 5% off use promo code s1t35p

  7. #7
    Village Idiot cgustaveson's Avatar
    Join Date
    May 2008
    Posts
    454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The image is servered by a simple php include. I am just wondering if there is a method to serve images from a db on other websites using javascript or if there is a method to show a servered image on a page (such as http://www.bucktenads.com/adserver/display.php) or if anyone can suggest a method.
    Smoke Lounge | Hookah Store and Community
    Shisha Tobacco
    SitePoint Users get 5% off use promo code s1t35p


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
  •