Open GoogleCodeExporter opened 8 years ago
Hi, i have nearly the same problem.
For my project it is necessary to have up to 4 links which all refer to these
same target. Actually this is not working.
When i put a link in the content-area (you can try it in your demo) - nothing
happens when i click on it.
I changed in the .js file the attr. "id" to "name" and links look like this
<a name="mylink" class="switcher">My Link</a>
which refer to <div id="mylink-content" class"content-switcher">Content</div>
The Navigation is still working, but when i place the link into some Content is
does not work.
Hope you can help me.
Bye
Original comment by stefan_b...@gmx.de
on 17 Feb 2011 at 10:36
Sorry about the late reply.
Stefan:
Just to confirm, the hidden content panels need to have a class of
"switcher-content", not "content-switcher" like in your example.
So, if I understand right, your saying that any links that you place in the
hidden content panels, that refer to another content panel, will not work
once they've been made visible?
AISFORANDREW:
Regarding your timer, yes this would be possible. But, you'll need to code
the timer to trigger the click events your self. JCPS by its self doesnt have
any timers built in.
It probably woudnt be hard either. You could easily just chain the click
events using the http://api.jquery.com/delay/ function
Original comment by cheyne.w...@gmail.com
on 24 Feb 2011 at 5:52
Re: Stefan
Just further again on this. Your saying:
When a "#switcher" button, exists inside a content panel, it does not have any
effect? Ie, it does not perform the slide transition?
I think I know what that is, it wont be difficult to fix. Ill release a fixed
version in the next day or so. It is to do with the Live() function (or lack
of).
If your savvy enough you can implement it your self, its only half a line of
code, otherwise just hold on until I fix it.
Cheers
Cheyne
Original comment by cheyne.w...@gmail.com
on 24 Feb 2011 at 6:10
Also for USE LINKS INSIDE slider/fader i modified a source code inside content
switcher at lines: 6,20 {depends what you use, slider, or fader} also:
FROM
$('.switcher' + panel).click(function() {
TO
$('.switcher' + panel).live('click',function() {
Live jQuery rocks! (works great with fancybox too)
Radoslav
Original comment by sk.rados...@gmail.com
on 19 Aug 2011 at 3:40
Original issue reported on code.google.com by
pixel.pe...@gmail.com
on 15 Feb 2011 at 4:13