Jump to content

Parkpre

Members
  • Posts

    16
  • Joined

  • Last visited

Posts posted by Parkpre

  1. hello peoplehow would i go about making the images within this script links?

    <script LANGUAGE="JavaScript">var theImages = new Array() theImages[0] = 'photo1.jpg'theImages[1] = 'photo2.jpg'theImages[2] = 'photo3.jpg'theImages[3] = 'photo4.jpg'var j = 0var p = theImages.length;var preBuffer = new Array()for (i = 0; i < p; i++){   preBuffer[i] = new Image()   preBuffer[i].src = theImages[i]}var whichImage = Math.round(Math.random()*(p-1));function showImage(){document.write('<img src="'+theImages[whichImage]+'">');}</script>

    the code is a random image thingy, thank you! :)

  2. hi people! :) on the homepage im creating, i have a space thats showing the latest information for the current day.what i'd like for this space is for the content of this area to change every X amount of seconds, so that i can fit more info onto the page!but when the cursor moves over the content it should stay on the current content untill the user rolls outI think this would be best in javascript, so anyone got a link to something that could help? etc?Cheers people! :)

  3. Hi people! :) i have this scipt to change an image a day!

    <script type="text/javascript" language="JavaScript">  	 var now = new Date ();  	 var day = now.getDay();  	 //the week begins on SUNDAY  	 if(day == 0) document.write("<img src='entssunday.jpg' width='424' height='82' border='0' align='left'");  	 if(day == 1) document.write("<img src='entsmonday.jpg' width='424' height='82' border='0' align='left'");  	 if(day == 2) document.write("<img src='entstuesday.jpg' width='424' height='82' border='0' align='left'");  	 if(day == 3) document.write("<img src='entswednesday.jpg' width='424' height='82' border='0' align='left'>");  	 if(day == 4) document.write("<img src='entsthursday.jpg' width='424' height='82' border='0' align='left'");  	 if(day == 5) document.write("<img src='entsfriday.jpg' width='424' height='82' border='0' align='left'");  	 if(day == 6) document.write("<img src='entssaturday.jpg' width='424' height='82' border='0' align='left'");  	 </script>

    really useful code i think, and working well!what i want is to make the images into links, can some one in the know give me some pointers or amend my script! :ph34r: Cheers!

  4. right firstly Hi! :) Im using CSS to control how my links look in my pages using:

    A:link {text-decoration: none; color: white;}A:visited {text-decoration: none; color: white;}A:active {text-decoration: none; color: white;}A:hover {text-decoration: underline; color: white;}

    My links look like this [My Link]what id like to do is change the color of the '[' and ']' through out my pages!any suggestions how this could be done using CSS? tried searching but didnt find anything?Cheers! :)

×
×
  • Create New...