473,513 Members | 2,628 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Jquery Sliding Panels Active Link...Javascript or CSS?

1 New Member
Hello There,
I am using jquery Spry Sliding panels for a new site i am working on. I am looking to style similarly to this example in particular I am trying to find a way to give the navigation links (which will eventually be imgs) an active state (whichever link is currently selected-I wish it to have a different image and same for mouseover) as on the coda website.

I'm quite new to javascript, and having read similar articles on the forum have tried different suggestions, but as my mark-up is quite different in the first place to these with similar problems, haven't been able to find a solution for myself.

From looking at my mark-up below, would the best solution be to use CSS or javascript or both to allow for different active link states?

Here is my html script for the navigation:
Expand|Select|Wrap|Line Numbers
  1. Navigate by index: 
  2. <a href="#" onclick="sp2.showPanel(0); return false; switchColors(this,'green'); ">ssdfsdfsdfsll</a> |
  3. <a href="#" onclick="sp2.showPanel(1); return false;">Engineering & Environmental</a> |
  4. <a href="#" onclick="sp2.showPanel(2); current = $this.parent().index();
  5. return false;">Financial</a> |
  6. <a href="#" onclick="sp2.showPanel(3); return false;">Sustainability</a> |
  7.  
Here is the page is it stands (excuse the lack of design!)
Here is the SprySlidingPanels.js

Many Thanks in advance to anyone who can help me find a solution.

Best,
Sarah
Aug 9 '10 #1
1 2793
RamananKalirajan
608 Contributor
You can do that easily. You have to use Javascript and little bit of HTML Codes to develop it. If you are using table kind of stuff. Have a table with three columns. In the tr specify the valign as middle. In the first and last column. Have image for previous and next. In the center have the td with the div which you are currently using to show the slide content. On the image call the method you are calling for slide.

If you are using div for layout and all means you have to use some css and place 3 div's with same as table.

Thanks and Regards
Ramanan Kalirajan
Aug 13 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
7261
by: Markus | last post by:
Hello, I'm running on Mac OS X and need to create a soft link to a file. I tried both makealias() and link(). While makealias creates a Finder alias just fine my application that needs to read...
36
3832
by: Peter Brause | last post by:
Hello, my stylesheet shows different colors for visited, active and hovered links. It works fine in IE 6, but in Opera 7 the color for the active link (red background) is never shown. How to...
6
15877
by: Carla | last post by:
hi people, I have a little problem that I can't solve with css and i was wondering if you could help me. I have 4 links, I want that when I click/mouseover in the link 1, it turns to a color...
4
20213
by: crhaynes | last post by:
I'm having trouble with my CSS. My links are black, my hover is orange and my active link is red. When I select a link it turns red but i does not retain that color when the selected page loads. ...
2
1852
by: paulmac106 | last post by:
Hi, I have a menu control that has two Menu choices One is "View History Items" the second is "PDA" My problem is as you roll the mouse over the menu options, the second one works only...
1
3852
by: Lennart | last post by:
I want to add sliding panels, like the ones VS uses for Propery, Toolbox and son on, to my Windows Forms. Can anyone help me? /Lennart
0
2576
by: kal | last post by:
Hi there I am hunting for way to turn off/disable active scripting especially javascript in my webbrowser control. I don't see any property to turn off script. I found entry in registry...
1
4888
by: Max | last post by:
To the group, I am looking for a concept I saw used on at least two sites in the past. The principle is, for example, a 600 pixel area; this area is divided in four 150 pixel panels; if you...
1
4080
beacon
by: beacon | last post by:
I'm looking to reset the visited link color once another link is selected. Also, once that link takes me to a particular page, I want the font-weight for that page to be bold to indicate that it's...
2
2601
by: Garima12 | last post by:
There is htm page. In its body I am calling a class from stylesheet called TaskbarStyle(classname). Now I want to change the color of hyperlink in this page as well as their active link color. I am...
0
7260
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7537
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5086
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3233
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1594
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.