Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-02-2012, 10:21 AM   PM User | #1
sqyntz_myntz
New to the CF scene

 
Join Date: Oct 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sqyntz_myntz is an unknown quantity at this point
Exclamation Very new to Javascript. Need help!

Hi,

Here's the HTML code:

Code:
<div id="menu"><a href="#1">Category1</a><a href="#2">Category2</a><a href="Category3</a></div>
<div id="logo"><a href="#4">Logo</a></div>
<div id="footbar"><a href="#5">About Us</a><a href="#6">Contact Us</a></div>
<div id="cart"><a href="#7">Cart</a>
<div id="images"><a href="#8">Image1</a><a href="#9">Image2</a></div>
In my Home page, I only want the contents in "images" to appear while the rest just appear as links. However when I click on links #1-#3, #5-#7, I want the div for images to disappear while showing the contents for the links #1-#3, #5-#7. Also, when I click on link #4, I want the div for images to appear again. May I know what is the javascript required here?? I'm not sure if you guys understand what I'm looking for, but I hope you guys do!

Here is one website as an example: http://shopskinned.com
What I meant was how to hide the images in the homepage when clicking on links like ALL, NEW IN, ABOUT US etc. And when you click on the logo of the shop, the images appear as they are originally.

Last edited by sqyntz_myntz; 10-02-2012 at 12:31 PM..
sqyntz_myntz is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:31 AM.


Advertisement
Log in to turn off these ads.