View Single Post
  #3 (permalink)  
Old June 19th, 2009, 07:17 PM
RickBlacker RickBlacker is offline
Registered User
 
Join Date: Jun 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by richard.york View Post
All of the examples should be in the download. I'll look at the download package and make sure they're all there.

If you post all the code you're using I can give you a hand with troubleshooting it.
Hi, i found the code. It was in the Figures folder. I didn't see it until just now.


Thanks for the offer on helping...

My HTML
Code:
<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml"xml:lang='en'>
<head>
<title>Example</title>
<metahttp-equiv='content-type'content='text/html; charset=utf-8'/>
<metahttp-equiv='content-language'content='en-us'/>
<scripttype="text/javascript"src="../JS/jquery-1.3.2.js"></script>
<!-- Rename the files here -->
<scripttype="text/javascript"src="../JS/Example2-2.js"></script>
<linktype="text/css"href="../CSS/Example2-2.css"rel="Stylesheet"/>
</head>
<body>
<h4>Colors</h4>
<ulid='tmpColors'>
<li>Red</li>
<li>Blue</li>
<li>Green</li>
<liid='tmpYellow'>Yellow</li>
<li>Orange</li>
<li>Purple</li>
</ul>
</body>
</html>
My CSS
Code:
body
{
font: 16pxsans-serif;
}
h4
{
font-size: 16px;
margin: 005px0;
}
ul#tmpColors
{
list-style: none;
margin: 0;
padding: 0;
}
 
ul#tmpColorsli
{
margin: 1px;
padding: 3px;
}
 
li.tmpSibling
{
background: #165b91;
color: Fuchsia;
}

My JavaScript
Code:
var tmpExample = {
ready: function() {
$('li#tmpYellow').prev().addClass('tmpSibling');
}
};
$(document).ready(tmpExample.ready);

Last edited by RickBlacker; June 19th, 2009 at 08:35 PM..
Reply With Quote