Super Jeweler Adds A New Rotation Banner - How to Insert Rotating Ad Banners - Dreamweaver


A Super Jeweler Gives You A Huge Banner, What to Do With It, the ad continues…

Rotating banners allow consumers to quickly view new specials, products, deals and more. It is important to have these to catch the eyes of quick passer bys coming to your site. SuperJeweler.com is a good example of what a site needs to do to grab the attention of online shoppers. In the top center of the page, SuperJeweler has rotating banners that highlight the most important things about the company.
Super Jeweler Adds A New Rotation Banner - How to Insert Rotating Ad Banners - Dreamweaver Tut

Click on the screenshot above to see the rotating banners in action.
Ready to set up your own rotating banners? I found a nice open source script at sourceforge.net that is free to download for rotating banners. The admin page allows you to upload images with a corresponding url and its priority. It rotates banner as if it is a GIF image… and on clicking any particular image, it redirects to the URL specified by admin. Also admin can get the number of hits on each image.

The download doesn’t include a readme file or instructions, so the next few tips may act as your crutch if you want to walk through the steps.
The first step is to upload the rotating_banners folder to your server.
If you visit the url to check it out, you’ll notice an error similiar to the following…
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/public_html/rotating_banner/my_common.inc on line 29
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/public_html/rotating_banner/my_common.inc on line 41
Could not find URL
This is an indication that you need to create a databse in your cpanel. Open the my_common.inc file after creating a new database to add your credentials to the file. This would be the database name, database user name, and database password.
Really Nice Jewelry - Really Low Prices are depicted via rotation banners, Shop SuperJeweler.com’s Black Diamond Collection Today!!!
Next, you’ll need to create a table within your database. You’ll find the table in the query.sql file.
Here’s a quick tip…

You will not need the first 3 lines of the query.sql file since we’ve already created a database.
Simple copy from where it says CREATE TABLE. Visit your phpmyadmin and click on SQL, then paste, and click go.
I ran into another problem with the free source, but its okay, everyone makes mistakes. One last edit on line 64 of your index.php file.
Change,
window.open(”/banner.php?bannerid=” + bannerids[no])
to,
window.open(”banner.php?bannerid=” + bannerids[no])
Open the first index.php file in the rotating_banners folder with dreamweaver to add more to the page. I didn’t add much, you can see the rotating banners as a demo here.
I hope this helps. Feel free to comment.
Read below for addittional dreamweaver information ...
Thank you for visiting Adobe-Masters.com. Don't forget to subscribe for free updates!
Related Tutorials:
Share
?I?m learning the adobe softwares one step at a time, Adobe-Masters.com?