PDA

View Full Version : Another Javascript VBA CMPS Banner Rotation Solution


Quarterbore
29 Mar 2006, 02:05
I have been fighting with a number of the various Javascript based banner rotations on the board and I seemed to keep having problems. My solution was to stubbornly give up and turn to our friends at Google.com. A quick google search uncovered this little script so the author of this page deserves credit for making this work:

http://www.yugdesign.com/demo/Ad-Simple/index.html

With the script above, I simply set out to create a module for my website that would allow me to present a random book with an amazon affiliate link.

Step 1: Create the PHP File, save in /forums/modules/books.pdf



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Then, create a new CMPS Module:

>>Add Module >> PHP File

Module Title: Related Books
File to Include: books.php
Identifier: books
Clean File Output: yes
Use Module Shell Template: Yes

Other notes: I upload photos of the books that I feature to my server as it is more reliable for me and it allows me to resize images to about the size that this script requires. This code could be used in many other ways.

You can see this running on my website at:

http://www.timeshareforums.com

Edits:

29-Mar-2006: Changed Title from Java to Javascript :confused:

COBRAws
29 Mar 2006, 03:08
this is Javascript not java. Confusion is being made by the tittle given.


Congrats by the way.

kofoid
30 Aug 2006, 01:19
I think I may just have to give this a shot! Thanks!

Trimos
05 Feb 2009, 15:05
Just out of curiosity, what were the problems with the various ad rotation softwares ? Reason I ask is I'm using AdPeeps and like it except it seems to be causing the curious issue of logging out members when they don't want to be logged out.

lorddomain
05 Feb 2009, 15:15
Great! Thanks for this

srilions
05 Dec 2009, 18:01
can I use for this 3.8.4 ???????????????????????