Beauty In Design Community
Welcome, Guest
Please Login or Register.
Lost Password?

Welcome to Our New Forum

Welcome to our new forum powered by BestofJoomla.com's "FireBoard".  Please note that we have lost alot of posts recently due to some compatibility issues.  This forum continues to be for registered users only but the public now has access to view posts!

Help with joomla template/mootools (1 viewing)
_GEN_GOTOBOTTOM Post Reply

TOPIC: Help with joomla template/mootools

#156
Bart Salle (User)
Fresh Boarder
Posts: 2
graphgraph
Help with joomla template/mootools 2007/08/04 14:13  
Hi,

i made a very simple test/mootools joomla template with (at the moment) only a menu in it.
I wanted to use the Fx.Slide Vertical effect on the menu but it does not work.
I only use the "toggle link".
What am I doing wrong? It must be something very simple but I can't get it to work. Thanks in advance,

Bart

Here's the code:

<?php
/**
* @Template Name:
* @Version: 1.8
* @Package: A Joomla 1.0.X template
* @Copyright: (C) 2006 by Brian Diaz Media 65
* @License: http://www.m65.net/
**/

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
$iso = split( '=', _ISO ); echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<link href="<?php echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css";?>" rel="stylesheet" type="text/css" media="all" />
<link rel="shortcut icon" href="<?php echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/favicon.ico"; ?>" />

<!-- This so you can see the css styles in DW you can delete file once editing Template is complete-->
<link href="css/template_css.css" rel="stylesheet" type="text/css" media="all" />

<script src="mootools.v1.11.js" type="text/javascript" </script>

</head>
<body>

<script type="text/javascript">

var mySlide = new Fx.Slide('test');

$('slidein').addEvent('click', function(e){
e = new Event(e);
mySlide.slideIn();
e.stop();
});

$('slideout').addEvent('click', function(e){
e = new Event(e);
mySlide.slideOut();
e.stop();
});

$('toggle').addEvent('click', function(e){
e = new Event(e);
mySlide.toggle();
e.stop();
});

$('hide').addEvent('click', function(e){
e = new Event(e);
mySlide.hide();
e.stop();
});

</script>


<table width="900" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="200" rowspan="2" align="left" valign="top"><a id="toggle" href="#" name="toggle">toggle</a><div id="test"><?php if (mosCountModules('left')>0) mosLoadModules('left',0); ?></div></td>
<td width="700" height="150" align="left" valign="top"></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
  The administrator has disabled public write access.
#159
Rick (Admin)
Admin
Posts: 48
graph
Re:Help with joomla template/mootools 2007/08/04 21:56  
Bart,
I'm not sure you can do this with a table cells (maybe you can with the entire table itself...not sure). Have you tried using DIVs?
The Attractive Media Experience,
beautyindesign.com
  The administrator has disabled public write access.
#161
Bart Salle (User)
Fresh Boarder
Posts: 2
graphgraph
Re:Help with joomla template/mootools 2007/08/05 00:38  
Hi Rick,

thanks for the tip but even with only divs it does not work :-(
  The administrator has disabled public write access.
#179
Joachim Schubert (User)
Senior Boarder
Posts: 13
graphgraph
Sliders not working... 2007/09/12 20:33  
Hi,
Here goes another try in hope to get an answer...

I have the same problem with sliders. I'm using only divs and J! 1.12 mootools 1.1 and valid scrips from mootools samples section. I created a simple HTML testing page in the template directory to test the js code (it does not parse through Joomla) and there sliders work fine. The problem happens only when parsing the template index.php page through Joomla. This also happens with mootools assets function.

Last Try: If no answer well I just won't bother anymore to participate in this forum...
  The administrator has disabled public write access.
#180
Rick (Admin)
Admin
Posts: 48
graph
Re:Sliders not working... 2007/09/14 03:03  
Joachim,
I am sorry for the lack of response. Can you email me please, I have a couple things I want to run by you.

Thanks
The Attractive Media Experience,
beautyindesign.com
  The administrator has disabled public write access.
#181
Joachim Schubert (User)
Senior Boarder
Posts: 13
graphgraph
Re:Sliders not working... 2007/09/15 15:13  
Hi Rick,

You got my email.

Joachim
  The administrator has disabled public write access.
_GEN_GOTOTOP Post Reply
© Copyright 2007 Best of Joomla, Powered by FireBoardget the latest posts directly to your desktop
Contact Information