PDA

View Full Version : YOOtheme Dropdown Box!


Winterworks
01-03-2009, 03:30 PM
<a href="http://demo.yootheme.com/apr08/" target="_blank">http://demo.yootheme.com/apr08/</a>

See the Toppanel button? Click it, and it drops down.

I want one of those on my website... I've tried adding it. I've taken the CSS, I've viewed the source and copied it all, and got the "Toppanel" tab on my site, but when you click it, nothing.

Can someone help me out with this?

(Yes, I want it how it is there, it's a somewhat transparent box)

Lynne
01-03-2009, 03:39 PM
Did you grab the javascript also?

Winterworks
01-03-2009, 03:41 PM
All I got was...

(Here's my FORUMHOME, the bold is the parts I took)

$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
$headinclude
<title><phrase 1="$vboptions">$vbphrase[x_powered_by_vbulletin]</phrase>
</title>
[b] <link rel="stylesheet" href="http://demo.yootheme.com/apr08/modules/mod_yoo_toppanel/mod_yoo_toppanel.css.php" type="text/css" />
</head>
<body>

<div id="absolute">
<div class="transparent">
<div id="yoo-toppanel-1" class="yoo-toppanel">

<div class="panel-container" style="top: 0px;">
<div class="panel-wrapper">
<div class="panel" style="height: 340px; margin-top: -340px;">

<div class="content" style="width: 600px;">
<div class="close">
close </div>
<div class="article">
<h3>YOOtoppanel</h3>
<div>The YOOtoppanel module is fully configurable and any article or module can be published here.</div> </div> <div class="article">
<div class="width50 float-left">

<div style="width: 250px; height: 180px; border: 10px solid #282828; background: url('http://demo.yootheme.com/apr08/images/yootheme/toppanel_yootheme.jpg')">
</div>
</div>
<div class="width50 float-left">
<div style="float: right; width: 250px; height: 150px; padding: 20px 10px 10px 10px; border: 10px solid #282828; background: url('http://demo.yootheme.com/apr08/images/yootheme/toppanel_login.jpg')">

<form action="http://demo.yootheme.com/apr08/index.php" method="post" name="login">

<span class="default" style="display: block;">
<span class="yoo-login">



<span class="login">


<span class="username">


<input type="text" name="username" size="18" alt="Username" value="Username" onblur="if(this.value=='') this.value='Username';" onfocus="if(this.value=='Username') this.value='';" />

</span>

<span class="password">

<input type="password" name="passwd" size="10" alt="Password" value="Password" onblur="if(this.value=='') this.value='Password';" onfocus="if(this.value=='Password') this.value='';" />

</span>

<input type="hidden" name="remember" value="yes" />

<span class="login-button-icon">
<button value="" name="Submit" type="submit" title="Login"></button>

</span>

<span class="lostpassword">
<a href="http://demo.yootheme.com/apr08/index.php?option=com_user&amp;view=reset">Forgot your password?</a>
</span>

<span class="lostusername">
<a href="http://demo.yootheme.com/apr08/index.php?option=com_user&amp;view=remind">Forgot your username?</a>
</span>

<span class="registration">

<a href="http://demo.yootheme.com/apr08/index.php?option=com_user&amp;task=register">Create an account</a>
</span>


<input type="hidden" name="option" value="com_user" />
<input type="hidden" name="task" value="login" />
<input type="hidden" name="return" value="aHR0cDovL2RlbW8ueW9vdGhlbWUuY29tL2FwcjA4Lw==" />
<input type="hidden" name="0291f5af3d25c79486a473e5493db018" value="1" />
</span>


</span>

</span>
</form>
</div>
</div> </div> </div>
</div>
</div>
<div class="trigger" style="left: 50%;">
<div class="trigger-l" style=""></div>
<div class="trigger-m">Toppanel</div>

<div class="trigger-r" style=""></div>
</div>
</div>

</div>
</div><script type="text/javascript">
// <!--
var panelFx1 = new YOOtoppanel('yoo-toppanel-1', { offset: 340, transition: Fx.Transitions.expoOut, duration: 500 });
panelFx1.addTriggerEvent('#yoo-toppanel-1 .trigger')
panelFx1.addTriggerEvent('#yoo-toppanel-1 .close');
// -->
</script>
<div style="position: absolute; z-index: 20; top: 0px; left: 0px; width: 135px; height: 135px;">

</div>
</div>

Could you tell me where to get the javascript, and where it goes?

Edit: In the <head></head>

I now added..

<link href="http://demo.yootheme.com/apr08/templates/yoo_ambient/favicon.ico" rel="shortcut icon" type="image/x-icon" />

<link rel="stylesheet" href="http://demo.yootheme.com/apr08/modules/mod_yoo_toppanel/mod_yoo_toppanel.css.php" type="text/css" />

<script type="text/javascript" src="http://demo.yootheme.com/apr08/modules/mod_yoo_toppanel/mod_yoo_toppanel.js"></script>

Still, nothing.

Lynne
01-03-2009, 05:13 PM
I really don't know and don't feel like reading all about the yootool modules offered there. Have you read everything on that site about them and configured your page according to their instructions?

TimberFloorAu
01-04-2009, 03:00 AM
We implemented a similar thing on our forum, on homepage. Viewable to guests.

Click MegaMenu toggle.

Ste