Graphic Design Forum and Web Design Forum  

Go Back   Graphic Design Forum and Web Design Forum »General »Graphic Design and Web Design Help

Notices

Graphic Design and Web Design Help Get Graphic Design and Web Design related help here


Reply
 
LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 04-10-2007, 12:56 PM
ross ky2's Avatar
Junior Member
 
Join Date: Jun 2007
Location: Kirkcaldy
Posts: 11
Default How Do You Create Random Images????

Hi can anyone help?

I am currently creating my website in Dreamweaver CS3 and i want to have my banner to generate a random image everytime the page gets loaded or refreshed. I have searched on google and found some coding but i don't know how to implement it. The banner i want to change is in a table cell - thats as much as i know lol. As you may tell i am new to dreamweaver, so can anyone help please!!!!!

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #2 (permalink)  
Old 04-10-2007, 01:55 PM
Toon's Avatar
Netvibes is an Addiction™
 
Join Date: Jan 2007
Location: Sheffield, UK
Gender: Male
Posts: 18,142
Default

php is the best way but if you're only just starting that could be a problem, I'll have a look if there's a simple script for you
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #4 (permalink)  
Old 04-10-2007, 02:14 PM
ross ky2's Avatar
Junior Member
 
Join Date: Jun 2007
Location: Kirkcaldy
Posts: 11
Default

Thanks mate,

Ill give them a go and let you know how i get on!
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #5 (permalink)  
Old 04-10-2007, 02:54 PM
PR Design's Avatar
CSS Wizardry -- Not Gay!
 
Join Date: May 2007
Location: Yorkshire, England
Gender: Male
Posts: 4,893
Default

PHP would probably be simpler though:

"; ?>

Think that's right.

This script works on the condition(s) that your images are named by a number (eg 5.jpg) and that you have ten of them.

Last edited by PR Design; 04-10-2007 at 03:11 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #6 (permalink)  
Old 04-10-2007, 03:00 PM
ross ky2's Avatar
Junior Member
 
Join Date: Jun 2007
Location: Kirkcaldy
Posts: 11
Default

So confused lol!!

Im just not sure where i enter the scripts in the coding? I have the jpgs in a folder ready to go but i dont know where in the scripts i insert these codes. Do i highlight the table cell and replace its code or what? Might just give up and leave it with the one image.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #7 (permalink)  
Old 04-10-2007, 03:03 PM
Toon's Avatar
Netvibes is an Addiction™
 
Join Date: Jan 2007
Location: Sheffield, UK
Gender: Male
Posts: 18,142
Default

Code:
















Free JavaScripts provided by The JavaScript Source

Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #8 (permalink)  
Old 05-10-2007, 11:37 AM
ross ky2's Avatar
Junior Member
 
Join Date: Jun 2007
Location: Kirkcaldy
Posts: 11
Default

I cracked it!!!!

I managed to get the desired affect using the following example of code:



I just placed it where i wanted the image to appear, changed the image names and it seems to work perfectly.

Thanks for the help guys!!!
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #9 (permalink)  
Old 05-10-2007, 11:38 AM
jeela's Avatar
Experienced Member
 
Join Date: Sep 2007
Posts: 157
Default

can we see it in action?
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #10 (permalink)  
Old 05-10-2007, 11:44 AM
ross ky2's Avatar
Junior Member
 
Join Date: Jun 2007
Location: Kirkcaldy
Posts: 11
Default

Yeah ill have it up and running by (hopefully) the end of next week. I've still got a bit more content to put in and a few changes, then you can all judge it - just remember it's my first stab at creating one lol!!
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Couple random ones... Acuity Photography Forum 4 11-02-2008 09:31 AM
Random Images with PHP Graphic Design Links Graphic Design Links 0 14-12-2007 12:10 PM
Random Designs Mute Graphic Design Forum 58 08-05-2007 08:53 PM
Make random logos Alex* Off Topic 15 14-03-2007 09:46 AM


All times are GMT. The time now is 07:17 PM.