CodeIgniter Forums
'Fisheye' won´t function properly, why? JQuery Newbie - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: 'Fisheye' won´t function properly, why? JQuery Newbie (/showthread.php?tid=12075)



'Fisheye' won´t function properly, why? JQuery Newbie - El Forum - 10-04-2008

[eluser]Nummero2[/eluser]
Hi,

I wanted to add a Fisheye menue like here: Fisheye example

I coded the following:

Code:
$(document).ready( function()
{

$('#fisheye').Fisheye
        (
        {
                maxWidth: 50,
                items: 'a',
                itemsText: 'span',
                container: '.fisheyeContainter',
                itemWidth: 40,
                proximity: 90,
                halign : 'center'
        }
        )
});
and html wise a short list:

Code:
<div id='fisheye' class='fisheye'>
         <div class='fisheyeContainter'>

            <a href='[removed]header.change(\"net\")'> <span>Home</span><img
            src='/intranet/img/intranet_40.png' />    </a>
            <a href='[removed]header.change(\"plan\")' class='fisheyeItem'>
            <span>Home</span><img src='/intranet/img/intranet_40.png' />  </a>
            <a href='[removed]header.change(\"service\")' class='fisheyeItem'>
            <span>Home</span><img src='/intranet/img/intranet_40.png' />     </a>
            
         </div>
        </div>

It just doesnt work and I don´t know why. Any help, suggestions?

Greetings Sebastian


'Fisheye' won´t function properly, why? JQuery Newbie - El Forum - 10-04-2008

[eluser]Nick Husher[/eluser]
I assume you're including the correct library files. JSLint says you have a line breaking problem, the opening parenthesis for the $('#fisheye').Fisheye function should be on the same line.


'Fisheye' won´t function properly, why? JQuery Newbie - El Forum - 10-05-2008

[eluser]manilodisan[/eluser]
I would strongly suggest you to use firebug when working with javascript. And the appropriate forum as well Smile)


'Fisheye' won´t function properly, why? JQuery Newbie - El Forum - 10-06-2008

[eluser]richman[/eluser]
Fish eye uses interface which I believe works on an old version of jquery. I do not think it is supported anymore.