473,671 Members | 2,216 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Jquery Sliding Panels Active Link...Javascri pt 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 SprySlidingPane ls.js

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

Best,
Sarah
Aug 9 '10 #1
1 2803
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
7277
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 the reference file doesn't like this. link() produces 1) a hard link and b) gives me the following error: OSError: Operation not supported I guess what I'm looking for is a way to call the Unix ln command from
36
3876
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 explain this? Here is my code: (code optimization will be done later) 1. The HTML file <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head>
6
15884
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 a, then when I click/mouseover over the link 2, it turns to a color b and the link 1 turns to the normal link color again. (an so with the other links). Is this possible with CSS?
4
20222
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. Is i possible to retain that color? My navigation that i'm trying to get this corrected on is server-side include
2
1873
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 if your mouse is actually over the text "PDA". Since it
1
3860
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
2583
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 under HKU/software/microsoft/... which gets modified when we manually change the setting for active scripting in IE from dword 3 to 0. But that solution is not viable because programatically registry updation is dependent the user rights
1
4897
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 hover the mouse cursor over one panel, it expands from 150 pixel to 300, while the three remaining panels contract to 100 pixel each. If you can simple send a link that shows something close to that, that would help.
1
4106
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 the page you're looking at. Now, if the links have never been visited before, they are blue. If you hover over the links they turn light blue. I want the user to be able to select the link and it take you to that page. On that page, I want the link...
2
2611
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 calling 2 stylesheets on this htm page. code of htm page: <BODY class="TaskbarStyle" TEXT="Black" bottommargin="0" centermargin="0" rightmargin="0" topmargin="0"> code of stylsheet which contains TaskbarStyle class; .TaskbarStyle { ...
0
8390
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8909
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8596
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8667
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7428
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6222
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4221
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4399
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2806
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 we have to send another system

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.