Jump to content

[Solved] Menu slide in homepage


Recommended Posts

Hi,

I try to insert this menu slide in the .tpl of the editorial module:

http://www.jeremymartin.name/examples/kwicks.php?example=1

The problem is that when I insert the code that is the JS anim links, the calculating of the center_column stops and it appears empty, and then the right column, footer too ...

The code:




Everything is OK until this code:

<*script type="text/javascript">
           $().ready(function() {
                                   $('#imageMenu .kwicks').kwicks({
                       max: 205,
                       spacing:  5
                   });
                           });
       <*/script>




I also tried the same menu but with mootools libraries, like here:
http://www.phatfusion.net/imagemenu/
but the problem persists.

Once this bug is resolved I will try to make a module


<link rel="stylesheet" type="text/css" href="./modules/editorial/slide/css/menuslide.css" />
<link href="./modules/menuslide/menuslide.css" rel="stylesheet" type="text/css" media="all" />
<*script src="http://jmar777.googlecode.com/svn/trunk/js/jquery-1.2.6.js" type="text/javascript"><*/script>
<*script src="http://jmar777.googlecode.com/svn/trunk/js/jquery.easing.1.3.js" type="text/javascript"><*/script>
<*script src="http://kwicks.googlecode.com/svn/branches/v1.5.1/Kwicks/jquery.kwicks-1.5.1.pack.js" type="text/javascript"><*/script>









       <*script type="text/javascript">
           $().ready(function() {
                                   $('#imageMenu .kwicks').kwicks({
                       max: 205,
                       spacing:  5
                   });
                           });
       <*/script>
Link to comment
Share on other sites

I am really not a specialist but :

<*script type="text/javascript">
$().ready(function() {
$('#imageMenu .kwicks').kwicks({
max: 205,
spacing: 5
});
});
<*/script>

#imageMenu .kwicks [may there be a space ? is that correct ?]
spacing: 5 [2 spaces between ":" and "5"- could it be that ?]

do not know if it's important : did not really now a lot about coding.

Link to comment
Share on other sites

Hi Hassan,

You can use the code above with

{literal}  <*script type="text/javascript">
           $().ready(function() {
                                   $('#imageMenu .kwicks').kwicks({
                       max: 205,
                       spacing:  5
                   });
                           });
       <*/script>{/literal}


(remove * before script)

However here is a zip of the editorial module with this modification.
You ll have to edit the css page and editorial.tpl to insert your images, number of link etc… of what you want.
You can also see the homepage of this menu (link above) to tune it.

Good luck ;-)

editorial.zip

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
  • 3 weeks later...
  • 2 weeks later...
  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...