...

View Full Version : New User Needs Help



Potter_gold
06-26-2006, 10:10 PM
Hi

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

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

_Aerospace_Eng_
06-26-2006, 10:33 PM
Change this

<script>
<!--
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+'">')
else
document.write('<img src="'+sundayimg+'">')
//-->

</script>
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()
{
document.getElementById('thumbimg').setAttribute('src',smallimg[today]);
document.getElementById('thumblink').setAttribute('href',largeimg[today]);
}
//-->
</script>
<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.

Potter_gold
06-27-2006, 12: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum