Author Topic: banner/ad mod for home page ????  (Read 9421 times)

0 Members and 1 Guest are viewing this topic.

Offline Bear

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
banner/ad mod for home page ????
« on: January 04, 2006, 02:55:46 PM »
I am looking for a mod to add to my home page for displaying banner ads.
is there one for 4images ???
want something that i can easily add banner/links and it changes to a new banner when you refresh.

got adsense but i want to display my choice of banner/links to sites.

Happy new year to you all

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: banner/ad mod for home page ????
« Reply #1 on: January 04, 2006, 03:05:58 PM »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Bear

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Re: banner/ad mod for home page ????
« Reply #2 on: January 05, 2006, 12:43:44 AM »
will have a look
thank you

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: banner/ad mod for home page ????
« Reply #3 on: January 06, 2006, 12:40:24 AM »
It might be a little too late but this does, in fact, give me an idea. ;)

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: banner/ad mod for home page ????
« Reply #4 on: March 19, 2006, 03:21:26 AM »
just use:

Code: [Select]
<SCRIPT language=JavaScript>
/*
 +---------------------------------------------------------+
 | Ad Simple                 Copyright www.YugDesign.com   |
 +---------------------------------------------------------+
 | This program may be used and hosted free of charge by   |
 |anyone for personal purpose as long as this copyright    |
 |notice remains intact.                                   |
 +---------------------------------------------------------+
*/

var img_width = "468";
var img_height = "60";
var img_title = "Click Here";


var ad=new Array()
//insert here your images src
ad[0]='http://www.site.com/image1';
ad[1]='http://www.site.com/image2';
ad[2]='http://www.site.com/image3';
ad[3]='http://www.site.com/image4';
ad[4]='http://www.site.com/image5';

var links=new Array()
//insert here your links
links[0]='http://www.links1';
links[1]='http://www.links2';
links[2]='http://www.links3';
links[3]='http://www.links4';
links[4]='http://www.links5';

var xy=Math.floor(Math.random()*ad.length);
document.write('<a href="'+links[xy]+'" target="_blank"><img src="'+ad[xy]+'" width="'+img_width+'" height="'+img_height+'" alt="'+img_title+'"></a>');
</SCRIPT>

why use php when javascript does it ;)

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: banner/ad mod for home page ????
« Reply #5 on: March 19, 2006, 05:17:02 AM »
You can use phpads  software , this work nice :) and with few options of integration(php,javascript.etc)  :wink:

Offline mats

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: banner/ad mod for home page ????
« Reply #6 on: March 20, 2006, 02:51:54 PM »
Where do you put this javascript?

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: banner/ad mod for home page ????
« Reply #7 on: March 20, 2006, 04:36:36 PM »
at the place where the banner should be displayed.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump