<img src="<?php echo $thumb; ?>"
$thumb = get_post_meta($post->ID, 'Thumbnail', $single = true);
|
!--span class="style5">!--strong>Thanks for your query.!--/strong> !--br> We will contact you shortly.!--/span>!--/div> |
<?php
$theuri = $_SERVER['REQUEST_URI'];
if ( ($theuri =="/section1/") or ($theuri =="/section1/child1/") or ($theuri =="/section1/child2/") )
{
$section1menu = "<ul class=\"navlist2\">
<li><a href=\"www.example.com/section1/child1\">Sub Option 1</a></li>
<li><a href=\"www.example.com/section1/child2\">Sub Option 2</a></li>
</ul>";}
echo $section1menu;
?> var smartHoverBox = function(boxTimer, xOffset, yOffset, smartBoxSuffix, smartBoxClose) {
var smartBoxes = $(document.body).getElements('[id$=' + smartBoxSuffix + ']');
var closeElem = $(document.body).getElements('.' + smartBoxClose);
var closeBoxes = function() { smartBoxes.setStyle('display', 'none'); };
closeBoxes();
closeElem.addEvent('click', function(){ closeBoxes(); }).setStyle('cursor', 'pointer');
smartBoxes.each(function(item){
var currentBox = item.getProperty('id');
currentBox = currentBox.replace('' + smartBoxSuffix + '', '');
$(currentBox).addEvent('mouseleave', function(){ closeBoxesTimer = closeBoxes.delay(boxTimer); });
item.addEvent('mouseleave', function(){ closeBoxesTimer = closeBoxes.delay(boxTimer); });
$(currentBox).addEvent('mouseenter', function(){ closeBoxesTimer = $clear(closeBoxesTimer); });
item.addEvent('mouseenter', function(){ closeBoxesTimer = $clear(closeBoxesTimer); });
item.setStyle('margin', '0');
$(currentBox).addEvent('mouseover', function(){
smartBoxes.setStyle('display', 'none');
item.setStyles({ display: 'block', position: 'absolute' }).setStyle('z-index', '1000000');
//coordinates and size vars and math
var windowSize = $(window).getSize();
var windowScroll = $(window).getScroll();
var halfWindowY = windowSize.y / 2;
var halfWindowX = windowSize.x / 2;
var boxSize = item.getSize();
var inputPOS = $(currentBox).getCoordinates();
var inputCOOR = $(currentBox).getPosition();
var inputSize = $(currentBox).getSize();
var inputBottomPOS = inputPOS.top + inputSize.y;
var inputBottomPOSAdjust = inputBottomPOS - windowScroll.y
var inputLeftPOS = inputPOS.left + xOffset;
var inputRightPOS = inputPOS.right;
var leftOffset = inputCOOR.x + xOffset;
if(halfWindowY
item.setStyle('top', inputPOS.top - boxSize.y - yOffset);
if (inputLeftPOS
else { item.setStyle('left', (inputPOS.right - boxSize.x) - xOffset); };
}
else {
item.setStyle('top', inputBottomPOS + yOffset);
if (inputLeftPOS
else { item.setStyle('left', (inputPOS.right - boxSize.x) - xOffset); };
};
}).setStyle('cursor', 'pointer');
});
};
window.addEvent('domready', function() {
smartHoverBox(1000, 30, 0, '_smarthbox', 'smarthbox_close');
});
window.addEvent('domready', function() {
smartHoverBox(1000, 30, 0, '_smarthbox', 'smarthbox_close');
}); images = new Array(home_btn_h, login_btn_h, reg_btn_h, del_forum_btn, msgs_btn_h, new_forum_btn_h, reg_btn_h, unread_btn_h);
for(var i=0; i
images[i] = new Image();
images[i].src="assets/" + images[i] + ".gif";
}