44 users online (1 members and 43 guests)  


  Results 1 to 3 of 3

Related

  1. how to stop javascript via another javascript    Forum: Javascript Forum
    Replies: 0
  2. Replies: 8
  3. Replies: 5
  4. Javascript / css    Forum: Javascript Forum
    Replies: 1
  5. JavaScript    Forum: Javascript Forum
    Replies: 2
  1. #1
    sebastian's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2008
    Posts
    2

    Javascript And XML

    Hey all ...
    all i want is to develop an advertising tool in which i can add banners through a panel in different websites!

    by giving to my customers a <script></script> and when they put this script in the position they desire, in their site, to display there the banner !!

    i want something relative with this::

    include("www.exaample.com/images/ok.gif?position=4&")

    but this plays only in my site!!!!and i want to be compatible with all servers linux or microsoft!

    Can you help me to tell me where to start!

    Basically something to give them to embed it on their site like exactly the weather.com gives u their script

  2. #2
    skym's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2008
    Location
    Oradea, Romania
    Posts
    10

    Re: Javascript And XML

    I would make something like:

    <a href="http://yoursite.com/gohere.php?ad_id=123" rel="nofollow">
    <img src="http://yoursite.com/showimage.php?ad_id=123">
    </a>


    showimage.php can be something like:
    PHP Code:
    <?php
    if (!isset($_GET['ad_id']) || !is_numeric($_GET['ad_id'])) {
    die();
    }
    $ad_id = (int)$ad_id;
    // process the ad views stuff, then show an image
    header('Content-type: image/jpeg');
    echo 
    file_get_contents('ad_image.jpg');

  3. #3
    sebastian's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2008
    Posts
    2

    Re: Javascript And XML

    Thank u so much for replying to my message!
    I Appreciate it very much

    All i want is to create a javascript to give it to my customers to add it in their sites!

    all i want is exactly something like the script that WEATHER.COM provides to its users to display weather in their sites! Independent if the users have LINUX OR MICROSOFT SERVERS
    (PHP OR ASP).



    <script src='httpp//voap.weather.com/weather/oap/USCO0038?
    template=LAWNH&par=null&unit=0&key=23b21baeda744bc2b22d51bf2ed5b2bd'>
    </script>

    i mean give to my customers soemthing like the exsample above when they use it they can take banners and images from my server... exaxtly like weather.com javascripts works...

    CAN u tell me mate where to start??

    Plz....





Tags for this Thread