Forum Moderators: open
[edited by: whoisgregg at 6:31 pm (utc) on May 12, 2009]
[edit reason] Whoops, no URLs please. See TOS [webmasterworld.com] [/edit]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>:.: Louis Raphael's Portfolio :.:</title>
<link rel="stylesheet" media="screen" href="./style.css" type="text/css" />
<meta name="description" content="Online web portfolio for Louis Raphael" />
<meta name="keywords" content="web, portfolio, louis raphael web, louis raphael web designer, louis raphael porfolio, louis raphael web producer, design" />
<script src="./jquery.js" type="text/javascript" charset="utf-8">
</script>
<script src="./js.js" type="text/javascript" charset="utf-8">
</script>
<style type="text/css">
img, div { behavior: url(iepngfix.htc) }
</style>
<style type="text/css">
/*<![CDATA[*/
span.c1 {font: 10px arial; color: #CCC}
/*]]>*/
</style>
$("a.portfolioBtn1").css('backgroundColor', '#OOOOOO');
$("a.portfolioBtn").css('backgroundColor', '#FFFFFF');
$("a.portfolioBtn1").click(function() {
$("#portfoliostrip").animate({left: "0px"});
$(".itemDescription").toggle();
$(".itemDescription").slideDown();
$(".buttons a").css('backgroundColor', '#FFFFFF');
$("a.portfolioBtn").css('backgroundColor', '#cfcfcf');
$(this).css('backgroundColor', '#cfcfcf');
});
$("a.portfolioBtn2").click(function() {
$("#portfoliostrip").animate({left: "-730px"});
$(".itemDescription").toggle();
$(".itemDescription").slideDown();
$(".buttons a").css('backgroundColor', '#FFFFFF');
$("a.portfolioBtn").css('backgroundColor', '#cfcfcf');
$(this).css('backgroundColor', '#cfcfcf');
});
$("a.portfolioBtn3").click(function() {
$("#portfoliostrip").animate({left: "-1460px"});
$(".itemDescription").toggle();
$(".itemDescription").slideDown();
$(".buttons a").css('backgroundColor', '#FFFFFF');
$("a.portfolioBtn").css('backgroundColor', '#cfcfcf');
$(this).css('backgroundColor', '#cfcfcf');
});
'backgroundColor'I would try
'background-color'and that might clear up the whole problem. :)
Added: Also, you might want to wrap the
leftproperty in your animate function with quotes:
$("#portfoliostrip").animate({ 'left': "-1460px"});