PDA

View Full Version : Can someone offer a little help?



jasonlimon
Mar 8th, 2007, 09:13 PM
I've had a friend help me with some code on this page, but then he got bogged down with work. It's pretty basic. On this page is a portfolio with small numbers on top that when clicked show the art and text info (only #'s one and two are active). I got help to make that part work, but when one of the number is clicked the mouse over images doesn't stay lit while that number is selected. Does anyone know the code and where to put it to keep it on while it's selected? And the other thing is the arrows. They don't work right now. I just want them to do previous and next. Here's the url of the page: http://limon-art.com/test/portest.html

I really do appreciate any help. Thanks!

vwphillips
Mar 9th, 2007, 11:12 AM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>
<title></title>
<script language="JavaScript" type="text/javascript">
<!--
var Path='http://www.vicsjavascripts.org.uk/StdImages/'
var Last=['X',null];

function Mse(obj,img1,img2){
var zxcevt=window.event||arguments.callee.caller.arguments[0];
if (zxcevt.type=='click'||obj==Last[0]) return;
obj.src=(zxcevt.type=='mouseover')?Path+img2:(zxcevt.type=='mouseout'&&obj!=Last[0])?Path+img1:obj.src;
obj.onmouseout=function(){ Mse(this,img1,img2); }
}

function Click(obj,img1,img2){
if (Last[0]!='X'){
Last[0].src=Path+Last[1];
}
Last=[obj,img1];
}



//-->
</script>

</head>

<body>
<img src="http://www.vicsjavascripts.org.uk/StdImages/One.gif" width="40" height="20"
onclick="Click(this,'One.gif');"
onmouseover="Mse(this,'One.gif','Zero.gif');" >
<img src="http://www.vicsjavascripts.org.uk/StdImages/Two.gif" width="40" height="20"
onclick="Click(this,'Two.gif');"
onmouseover="Mse(this,'Two.gif','Zero.gif');">
</body>

</html>

jasonlimon
Mar 9th, 2007, 02:02 PM
Vic, you are too awesome. Thank you a million times!