<?php
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".slidingDiv").hide();
$(".show_hide").show();
$('.show_hide').click(function(){
$(".slidingDiv").slideToggle();
});
});
</script>
<?php
<div class="iniciar1">
<a href="{$mybb->settings['bburl']}/member.php?action=register"><span class="boton1">{$lang->welcome_register}</a></span>
<a href="#" class="show_hide"><span class="boton1">Iniciar Sesion</a></span>
<div class="slidingDiv">
<form action="member.php" method="post">
<input type="text" class="textlogin" name="username" value="Username" onfocus="if(this.value == 'Username') { this.value = ''; }" onblur="if(this.value=='') { this.value='Username'; }" />
<br />
<br />
<input type="password" class="textlogin" name="password" value="password" onfocus="if(this.value == 'password') { this.value = ''; }" onblur="if(this.value=='') { this.value='password'; }" />
<br />
<br />
<input type="submit" class="boton2" name="submit" value="{$lang->login}" />
<input type="hidden" name="action" value="do_login" />
<br />
</form>
<span class="posicion"><a href="{$mybb->settings['bburl']}/member.php?action=lostpw"><font color="#868686">Recuperar Pass</font></a></span>
</div>
</div>
<?php
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery(".slidingDiv").hide();
jQuery(".show_hide").show();
jQuery('.show_hide').click(function(){
jQuery(".slidingDiv").slideToggle();
});
});
</script>
(12 Feb, 2013, 4:04 pm)Steeep escribió: Trata cambiando los $ por jQuery & al principio de todo el JS que tienes agrega esto: jQuery.noConflict();
<?php
$.noConflict();
jQuery(document).ready(function() {
jQuery("a.show_hide").toggle(
function()
{
jQuery(".slidingDiv").stop(true, true).fadeIn();
},
function()
{
jQuery(".slidingDiv").stop(true, true).fadeOut();
}
);
};
(12 Feb, 2013, 5:43 pm)Steeep escribió: Trata con esto:
Código PHP:<?php
$.noConflict();
jQuery(document).ready(function() {
jQuery("a.show_hide").toggle(
function()
{
jQuery(".slidingDiv").stop(true, true).fadeIn();
},
function()
{
jQuery(".slidingDiv").stop(true, true).fadeOut();
}
);
};