Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Drop Down Box


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Apr 12, 2009, 07:20 PM
Mande
 
36 posts · Apr 2009
There is a dropdown box that comes up on www.nobsmiami.com that my client wants to drop down on www.nobsmiami.net

I put the below code in the HTML/CSS Inserts-->HTML Inserts:Header box but its not showing up. Please advice what I'm doing wrong.

Thanks!

Code inserted:

<!-- InstanceEndEditable -->
<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Original: DynamicDrive -->

<!-- Web Site: http://www.dynamicdrive.com -->

<style type="text/css">
#dropinboxv2cover{
width: 540px; /*change width to desired */
height: 920px; /*change height to desired. REMOVE if you wish box to be content's natural height */
position:absolute; /*Don't change below 4 rules*/
z-index: 100;
overflow:hidden;
visibility: hidden;
}

#dropinboxv2{
width: 520px; /*change width to above width-20. */
height: 720px; /*change height to above height-20. REMOVE if you wish box to be content's natural height*/
border: 2px solid black; /*Customize box appearance*/
background-color: lightyellow;
padding: 4px;
position:absolute; /*Don't change below 3 rules */
left: 0;
top: 0;
}
</style>



<script type="text/javascript">

/***********************************************
* Amazon style Drop-in content box- Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
* Go to http://www.dynamicdrive.com/ for full source code
***********************************************/

var dropboxleft=200 //set left position of box (in px)
var dropboxtop=50 //set top position of box (in px)
var dropspeed=25 //set speed of drop animation (larger=faster)
var dropdelay=5000 // delay before dropping

//Specify display mode. 3 possible values are:
//1) "always"- This makes the fade-in box load each time the page is displayed
//2) "oncepersession"- This uses cookies to display the fade-in box only once per browser session
//3) integer (ie: 5)- Finally, you can specify an integer to display the box randomly via a frequency of 1/integer...
// For example, 2 would display the box about (1/2) 50% of the time the page loads.

var displaymode="oncepersession"

///Don't edit beyond here///////////
if (parseInt(displaymode)!=NaN)
var random_num=Math.floor(Math.random()*displaymode)
var ie=document.all
var dom=document.getElementById

function initboxv2(){
if (!dom&&!ie)
return

crossboxcover=(dom)?document.getElementById("dropi nboxv2cover") : ie? document.all.dropinboxv2cover : document.dropinboxv2cover
crossbox=(dom)?document.getElementById("dropinboxv 2"): ie? document.all.dropinboxv2: document.dropinboxv2
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
crossbox.height=crossbox.offsetHeight
crossboxcover.style.height=parseInt(crossbox.heigh t)+"px"
crossbox.style.top=crossbox.height*(-1)+"px"
crossboxcover.style.left=dropboxleft+"px"
crossboxcover.style.top=dropboxtop+"px"
crossboxcover.style.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropinv2()",1)

}



function dropinv2() {
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
if (parseInt(crossbox.style.top)<0){
crossboxcover.style.top=scroll_top+dropboxtop+"px"
crossbox.style.top=parseInt(crossbox.style.top)+dr opspeed+"px"
}
else{
clearInterval(dropstart)
crossbox.style.top=100
}
}



function dismissboxv2(){

if (window.dropstart) clearInterval(dropstart)

crossboxcover.style.visibility="hidden"

}



function truebody(){

return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body

}



function get_cookie(Name) {

var search = Name + "="

var returnvalue = ""

if (document.cookie.length > 0) {

offset = document.cookie.indexOf(search)

if (offset != -1) {

offset += search.length

end = document.cookie.indexOf(";", offset)

if (end == -1)

end = document.cookie.length;

returnvalue=unescape(document.cookie.substring(off set, end))

}

}

return returnvalue;

}

if (displaymode=="oncepersession" && get_cookie("droppedinv2")=="" || displaymode=="always" || parseInt(displaymode)!=NaN && random_num==0){

if (displaymode=="oncepersession")

document.cookie="droppedinv2=yes"

if (window.addEventListener)
window.addEventListener("load", setTimeout(initboxv2,dropdelay), false)
else if (window.attachEvent)
window.attachEvent=setTimeout(initboxv2,dropdelay)
else if (document.getElementById || document.all)
window.onload=setTimeout(initboxv2,dropdelay)
}


</script>
<script type="text/javascript" src="/ci_includes/library.js"></script>
</head>
  #2  
Old Apr 14, 2009, 04:53 AM
Flynn's Avatar
Flynn
 
3,761 posts · Oct 2008
Munich, Germany
This file <script type="text/javascript" src="/ci_includes/library.js"></script> is not there. According to your code it should be at http://www.nobsmiami.net/ci_includes/library.js

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] I've got no drop down menu's JCCrgb Page & Category Menu Bars 4 Jun 4, 2009 04:51 PM
search box and archive search box zizi Page & Category Menu Bars 2 Mar 28, 2009 11:31 AM
Vertical drop down menu trt823 Atahualpa 3 Wordpress theme 0 Mar 7, 2009 08:12 PM
creating a drop down for archives? pltrace Sidebars & Widgets 2 Mar 1, 2009 05:55 PM
Drop down menu questions nickcee Page & Category Menu Bars 1 Feb 25, 2009 05:30 PM


All times are GMT -6. The time now is 04:17 AM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.