View Full Version : New User Needs Help

06-26-2006, 11:10 PM

Today i have used a posting on here to help give me a daily random image which i have set up. However, i want to allow users to be able to click on the image and see them in the full size.

Can you please help me? The site this is on is www.freepspwallpapers.co.uk

06-26-2006, 11:11 PM
Any other help is very much welcomed as i am a total newbie to HTML let alone Java.

06-26-2006, 11:33 PM
Change this

var mondayimg="small_babe_abititmuss.jpg"
var tuesdayimg="small_babe_abititmuss2.jpg"
var wednesdayimg="small_babe_abititmuss3.jpg"
var thursdayimg="small_babe_abititmuss4.jpg"
var fridayimg="small_babe_abititmuss5.jpg"
var saturdayimg="small_babe_abititmuss6.jpg"
var sundayimg="small_babe_abititmuss7.jpg"
var mydate=new Date()
var today=mydate.getDay()
if (today==1)
document.write('<img src="'+mondayimg+'">')
else if (today==2)
document.write('<img src="'+tuesdayimg+'">')
else if (today==3)
document.write('<img src="'+wednesdayimg+'">')
else if (today==4)
document.write('<img src="'+thursdayimg+'">')
else if (today==5)
document.write('<img src="'+fridayimg+'">')
else if (today==6)
document.write('<img src="'+saturdayimg+'">')
document.write('<img src="'+sundayimg+'">')

to this

<script type="text/javascript">
var smallimg = new Array(); //these are the smaller images
smallimg[0] = "small_babe_abititmuss.jpg";
smallimg[1] = "small_babe_abititmuss2.jpg";
smallimg[2] = "small_babe_abititmuss3.jpg";
smallimg[3] = "small_babe_abititmuss4.jpg";
smallimg[4] = "small_babe_abititmuss5.jpg";
smallimg[5] = "small_babe_abititmuss6.jpg";
smallimg[6] = "small_babe_abititmuss7.jpg";

var largeimg = new Array(); //these are the larger images
largeimg[0] = "large_babe_abititmuss.jpg";
largeimg[1] = "large_babe_abititmuss2.jpg";
largeimg[2] = "large_babe_abititmuss3.jpg";
largeimg[3] = "large_babe_abititmuss4.jpg";
largeimg[4] = "large_babe_abititmuss5.jpg";
largeimg[5] = "large_babe_abititmuss6.jpg";
largeimg[6] = "large_babe_abititmuss7.jpg";

var mydate = new Date();
var today = mydate.getDay() - 1;

window.onload = function()
<a id="thumblink"><img src="#" id="thumbimg" alt="" style="border:0;"></a>
And Java is NOT Javascript. They are two totally different languages, don't confuse them.

06-27-2006, 01:20 AM
Many thanks. That is a great help. Im very new to all this web world and really looking to make a go of this site.