PHP beginner |
|
<SCRIPT LANGUAGE="JavaScript">
<!--
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}
var preloadFlag = false;
function preloadImages() {
if (document.images) {
Contact_01_over = newImage("images/Contact_01-over.gif");
Services_01_over = newImage("images/Services_01-over.gif");
News_01_over = newImage("images/News_01-over.gif");
Products_01_over = newImage("images/Products_01-over.gif");
Home_01_over = newImage("images/Home_01-over.gif");
preloadFlag = true;
}
}
// -->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript"> <!-- function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } function changeImages() { if (document.images && (preloadFlag == true)) { for (var i=0; i<changeImages.arguments.length; i+=2) { document[changeImages.arguments[i]].src = changeImages.arguments[i+1]; } } } var preloadFlag = false; function preloadImages() { if (document.images) { Contact_01_over = newImage("images/Contact_01-over.gif"); Services_01_over = newImage("images/Services_01-over.gif"); News_01_over = newImage("images/News_01-over.gif"); Products_01_over = newImage("images/Products_01-over.gif"); Home_01_over = newImage("images/Home_01-over.gif"); preloadFlag = true; } } // --> </SCRIPT>
<A HREF="#"
ONMOUSEOVER="changeImages('Contact_01', 'images/Contact_01-over.gif'); return true;"
ONMOUSEOUT="changeImages('Contact_01', 'images/Contact_01.gif'); return true;">
<IMG NAME="Contact_01" SRC="images/Contact_01.gif" WIDTH=126 HEIGHT=40 BORDER=0></A>
<br><br>
<A HREF="#"
ONMOUSEOVER="changeImages('Services_01', 'images/Services_01-over.gif'); return true;"
ONMOUSEOUT="changeImages('Services_01', 'images/Services_01.gif'); return true;">
<IMG NAME="Services_01" SRC="images/Services_01.gif" WIDTH=116 HEIGHT=40 BORDER=0></A>
<br><br>
<A HREF="#"
ONMOUSEOVER="changeImages('News_01', 'images/News_01-over.gif'); return true;"
ONMOUSEOUT="changeImages('News_01', 'images/News_01.gif'); return true;">
<IMG NAME="News_01" SRC="images/News_01.gif" WIDTH=116 HEIGHT=40 BORDER=0></A>
<br><br>
<A HREF="#"
ONMOUSEOVER="changeImages('Products_01', 'images/Products_01-over.gif'); return true;"
ONMOUSEOUT="changeImages('Products_01', 'images/Products_01.gif'); return true;">
<IMG NAME="Products_01" SRC="images/Products_01.gif" WIDTH=130 HEIGHT=40 BORDER=0></A>
<br><br>
<A HREF="#"
ONMOUSEOVER="changeImages('Home_01', 'images/Home_01-over.gif'); return true;"
ONMOUSEOUT="changeImages('Home_01', 'images/Home_01.gif'); return true;">
<IMG NAME="Home_01" SRC="images/Home_01.gif" WIDTH=78 HEIGHT=40 BORDER=0></A>
<A HREF="#" ONMOUSEOVER="changeImages('Contact_01', 'images/Contact_01-over.gif'); return true;" ONMOUSEOUT="changeImages('Contact_01', 'images/Contact_01.gif'); return true;"> <IMG NAME="Contact_01" SRC="images/Contact_01.gif" WIDTH=126 HEIGHT=40 BORDER=0></A> <br><br> <A HREF="#" ONMOUSEOVER="changeImages('Services_01', 'images/Services_01-over.gif'); return true;" ONMOUSEOUT="changeImages('Services_01', 'images/Services_01.gif'); return true;"> <IMG NAME="Services_01" SRC="images/Services_01.gif" WIDTH=116 HEIGHT=40 BORDER=0></A> <br><br> <A HREF="#" ONMOUSEOVER="changeImages('News_01', 'images/News_01-over.gif'); return true;" ONMOUSEOUT="changeImages('News_01', 'images/News_01.gif'); return true;"> <IMG NAME="News_01" SRC="images/News_01.gif" WIDTH=116 HEIGHT=40 BORDER=0></A> <br><br> <A HREF="#" ONMOUSEOVER="changeImages('Products_01', 'images/Products_01-over.gif'); return true;" ONMOUSEOUT="changeImages('Products_01', 'images/Products_01.gif'); return true;"> <IMG NAME="Products_01" SRC="images/Products_01.gif" WIDTH=130 HEIGHT=40 BORDER=0></A> <br><br> <A HREF="#" ONMOUSEOVER="changeImages('Home_01', 'images/Home_01-over.gif'); return true;" ONMOUSEOUT="changeImages('Home_01', 'images/Home_01.gif'); return true;"> <IMG NAME="Home_01" SRC="images/Home_01.gif" WIDTH=78 HEIGHT=40 BORDER=0></A>
|