Static website for local racer (circa Oct 2003)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

54 lines
1.4 KiB

  1. // menu button functions
  2. if (document.images) {
  3. homeon = new Image();
  4. homeon.src = "images/home2.gif";
  5. homeoff = new Image();
  6. homeoff.src = "images/home.gif";
  7. profileon = new Image();
  8. profileon.src = "images/profile2.gif";
  9. profileoff = new Image();
  10. profileoff.src = "images/profile.gif";
  11. crewchiefon = new Image();
  12. crewchiefon.src = "images/crewchief2.gif";
  13. crewchiefoff = new Image();
  14. crewchiefoff.src = "images/crewchief.gif";
  15. scheduleon = new Image();
  16. scheduleon.src = "images/schedule2.gif";
  17. scheduleoff = new Image();
  18. scheduleoff.src = "images/schedule.gif";
  19. newson = new Image();
  20. newson.src = "images/news2.gif";
  21. newsoff = new Image();
  22. newsoff.src = "images/news.gif";
  23. sponsorson = new Image();
  24. sponsorson.src = "images/sponsors2.gif";
  25. sponsorsoff = new Image();
  26. sponsorsoff.src = "images/sponsors.gif";
  27. contactson = new Image();
  28. contactson.src = "images/contacts2.gif";
  29. contactsoff = new Image();
  30. contactsoff.src = "images/contacts.gif";
  31. guestbookon = new Image();
  32. guestbookon.src = "images/guestbook2.gif";
  33. guestbookoff = new Image();
  34. guestbookoff.src = "images/guestbook.gif";
  35. }
  36. function mouseOver(imageName) {
  37. if (document.images) {
  38. document[imageName].src = eval(imageName + "on.src");
  39. }
  40. }
  41. function mouseOut(imageName) {
  42. if (document.images) {
  43. document[imageName].src = eval(imageName + "off.src");
  44. }
  45. }