Please Help With HTML =[

SpellZ

Regular Member
Joined
Feb 8, 2009
Messages
358
Reaction score
292
Anyone? Plz.


Hi guys, this is the site: http://eksow.com/

This the the source code for it:
<html>
<head>
<title>Eksow Event Design & Management</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<SCRIPT TYPE="text/javascript">
<!--
// copyright 1999 Idocs, Inc. http://www.idocs.com/tags/
// Distribute this script freely, but please keep this
// notice with the code.

var rollOverArr=new Array();
function setrollover(OverImgSrc,pageImageName)
{
if (! document.images)return;
if (pageImageName == null)
pageImageName = document.images[document.images.length-1].name;
rollOverArr[pageImageName]=new Object;
rollOverArr[pageImageName].overImg = new Image;
rollOverArr[pageImageName].overImg.src=OverImgSrc;
}

function rollover(pageImageName)
{
if (! document.images)return;
if (! rollOverArr[pageImageName])return;
if (! rollOverArr[pageImageName].outImg)
{
rollOverArr[pageImageName].outImg = new Image;
rollOverArr[pageImageName].outImg.src = document.images[pageImageName].src;
}
document.images[pageImageName].src=rollOverArr[pageImageName].overImg.src;
}

function rollout(pageImageName)
{
if (! document.images)return;
if (! rollOverArr[pageImageName])return;
document.images[pageImageName].src=rollOverArr[pageImageName].outImg.src;
}
//-->
</SCRIPT>

<!-- ImageReady Slices (Untitled-1 copy.psd) -->
<Center>
<table id="Table_01" width="1024" height="769" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="6">

<img src="images/Eksow_01.jpg" width="1024" height="261" alt=""></td>
</tr>
<tr>
<td rowspan="4">
<img src="images/Eksow_02.jpg" width="65" height="507" alt=""></td>
<td>
<A
HREF="#"
onMouseOver = "rollover('left')"
onMouseOut = "rollout('left')"
><IMG
SRC="http://eksow.com/images/Eksow_03.jpg"
NAME="left"
ALT="Home Page" BORDER=0

></A>
<SCRIPT TYPE="text/javascript">
<!--
setrollover("http://eksow.com/images/Rollover_1_03.jpg");
//-->
</SCRIPT>
</td>

<td colspan="2">
<A
HREF="#"
onMouseOver = "rollover('middle')"
onMouseOut = "rollout('middle')"
><IMG
SRC="http://eksow.com/images/Eksow_04.jpg"
NAME="middle"
ALT="Home Page" BORDER=0

></A>
<SCRIPT TYPE="text/javascript">
<!--
setrollover("http://eksow.com/images/Rollover_2_04.jpg");
//-->
</SCRIPT></td>
<td>
<A
HREF="#"
onMouseOver = "rollover('right')"
onMouseOut = "rollout('right')"
><IMG
SRC="http://eksow.com/images/Eksow_05.jpg"
NAME="right"
ALT="Home Page" BORDER=0

></A>
<SCRIPT TYPE="text/javascript">
<!--
setrollover("http://eksow.com/images/Rollover_3_05.jpg");
//-->
</SCRIPT></td>
<td rowspan="2">
<img src="images/Eksow_06.jpg" width="78" height="491" alt=""></td>
</tr>

<tr>
<td colspan="4">
<img src="images/Eksow_07.jpg" width="881" height="262" alt=""></td>
</tr>
<tr>
<td colspan="5">
<A
HREF="#"
onMouseOver = "rollover('bottom')"
onMouseOut = "rollout('bottom')"
><IMG
SRC="http://eksow.com/images/Eksow_08.jpg"
NAME="bottom"
ALT="Home Page" BORDER=0

></A>
<SCRIPT TYPE="text/javascript">
<!--
setrollover("http://eksow.com/images/Rollover_4_08.jpg");
//-->
</SCRIPT></td>
</tr>

<tr>
<td colspan="2">
<img src="images/Eksow_09.jpg" width="567" height="8" alt=""></td>
<td>
<img src="images/Eksow_10.jpg" width="21" height="8" alt=""></td>
<td colspan="2">
<img src="images/Eksow_11.jpg" width="371" height="8" alt=""></td>
</tr>
<tr>

<td>
<img src="images/spacer.gif" width="65" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="292" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="275" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="21" height="1" alt=""></td>
<td>

<img src="images/spacer.gif" width="293" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="78" height="1" alt=""></td>
</tr>
</table>
</center>
<!-- End ImageReady Slices -->
</body>
</html>
Here is what I'm trying to accomplish, but have no idea where to start from...

1. When people go to the site, the pictures at the bottom don't appear
2. When people click on "Hospitality Night" (far left), then the pictures appear
3. When it's clicked, the rollover image stays (white box)

So in laymans terms...
I go to the site, I click on far left link, pictures show.
I click on the middle link, diff pictures show
i click on the right one, different pictures show.

&& done :)
 
There's javascript there. Javascript is one of those languages where it's very descriptive so if you take the time to go through it line by line, you'll understand what's going on.

When you don't understand a command, head over to w3schools and look it up.
 
Haven't tested this but you can do something it like

Code:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>
$(document).ready(function(){
   $('.link1').click(function(){
       $('.all').hide();      
       $('.link1images').fadeIn();
   });

   $('.link2').click(function(){
       $('.all').hide();      
       $('.link2images').fadeIn();
   });

   $('.link3').click(function(){
       $('.all').hide();      
       $('.link3images').fadeIn();
   });
});
<script>

and then your html you will need to add:
on your links link you need to add the class like so:

HTML:
    <a href="whatver" class="link1">link</a>
    <a href="whatver" class="link2">link</a>
    <a href="whatver" class="link3">link</a>

Then on the images you want to appear you need to add adiv around them, or give them each a class, like:

HTML:
<div class="link1images all">Images for link 1 go here</div>
<div class="link2images all">Images for link 1 go here</div>
<div class="link3images all">Images for link 1 go here</div>

or like so

HTML:
<img src="whatver" class="link1images all"/>
<img src="whatver" class="link2images all"/>
<img src="whatver" class="link3images all"/>

Hope that helps, give me a PM if you need help
 
Back
Top