Help with scroll volume bar on pavilion dv6-1330sa
I've had a few problems for a while now on this computer but my touch screen volume slide bar stopped working a few months ago. can someone please explain how to get it fixed i will need an exact description as i am in no way a proffesional on a laptop, basiccally
.at the rear of the keyboard the touch sound scroll bar has stopped working
.the mute and wi-fi touchbuttons also dont work
.will only download things from hp site, dont refer to anything dodgy.
.il be very happy if someone can fix this
thnkyou very much
Sounds like an issue with the keyboard bezel, it is most likely a loose ribbon cable from the circuit board on the keyboard bezel to the ZIF connector on the motherboard. A HP Authorized Service Center can take a look at this if your laptop is under warranty. The warranty status can be checked here:
http://www13.itrc.hp.com/service/ewarranty/warrantyResults.do?admit=109447627+1286541891570+28353475
If it is not under warranty, consider looking up the maintenance manual for your model laptop. The manual will have schematics on how to disassemble the laptop, a keyboard bezel is a little tricky but not too hard to remove. You'll need a spudger, an Torx-8 screwdriver and a Phillips-1 screwdriver. Remove the ribbon cable that connects the bezel to the motherboard and re-seat it, ensuring that the ribbon cable lays flush with the bottom of the ZIF connector, push down on the ZIF to seal the connection and re-assemble the keyboard bezel and keyboard, putting all the screws back in.
________________________________________________________________________________________________________ I Love Kudos! If you feel my post has helped you please click the White Kudos! Star just below my name
If you feel my answer has fixed your problem please click 'Mark As Solution' and make it easier for others to find help quickly
Similar Messages
-
Hi, I need help with scrolling
Hello I am Kevin Jin, I am working a huge project acually not that big, but I need help with five things, i mihgt have more things in my mind but here it is
1. I need help with scrolling like where you have buttons for example or press on a navigation bar tab, then it goes to that specific pace of the page, for a one page website, for example some sites you press on contacts and gose down to the bottom of the page where the contacts place is located, not opening a new link.
2.Second also I need help with navigation bar, where it fallows the scroll as it gose down, like for example when it is html the object is fixed to the top, and when you scroll down it will fallow it it,
3.I need Parallex scrolling where you can have the timeline or animations run while you scroll in the meantime and have animation running all the time, for example the infographic site where the bees are fluying but still have seperate animations while you scroll
4.I am so sorry i have two more to go, i appreciate your help, I would also like to ask if like looping each animations sperately, not looping the whole timeline, can it be possible to loop an animation while you have all the interactivity witht he site like looping seperately all the time, without interfeering with all the other animation
5.I also are wondering if you can create multiple pages on one animate project, like multiple pages with html
I just moved on to edge animate from html, and html was also beirf learn for me and mostly i was doing design work, and i thought getting out of graphic river and moving on the theme forest would be a better idea for me, thank you guys so much of the help and add me on skype : kevin2019170 or add me on facebook ; [email protected] or graphicriver, www.graphicriver.net/user/phantomore I would appriciate if you just would like contact me through SNS since I have that in hany 24 hours long, but the thred will also do, thank you doo much foryour help,
P.S, I want also all the five things to work on one aimate project not interfeering with other ideas liek all five questions i had should run on one site,
THANK YOU SO MUCH FOR YOUR HELP AND I APPRICIATE YOUR HELP!1.
write this code in your button Click
$('html,body').animate({scrollTop: sym.$("Your Symbole Name Here").offset().top}, "slow"); // scroll to the top of that symbol name
Or :
$('html,body').animate({"scrollTop":"600px"}, 750); // Higher value means slower , scroll to top page
1 and 2 see this post http://forums.adobe.com/message/5531344#5531344
3 use edge commons plugin http://www.edgedocks.com/edgecommons
4.just put the animations behind eachother so when 1 is done, start with the animating the other symbol/div
5. i thin its best just to make for every page a new project or make the site in muse. -
Hi I need help with the volume on my phone, even on speaker I can barely hear who I am speaking with . How do I make it louder /
Hi there,
I would recommend taking a look at the troubleshooting steps found in the article below.
iPhone: Can't hear through the receiver or speakers
http://support.apple.com/kb/ts1630
-Griff W. -
Help with Scrolling Text Item.
Hi , need help with making a text item scrollable.
i.e. A field is 30 characters and i can only display 10
characters, now what I would like is a scroll bar under the text
item.
Is this possible. I am using Forms 5.
Thanx for any help.
Pankaj Patel.
nullPetr Valouch (guest) wrote:
: Pankaj Patel (guest) wrote:
: : Hi , need help with making a text item scrollable.
: : i.e. A field is 30 characters and i can only display 10
: : characters, now what I would like is a scroll bar under the
: text
: : item.
: : Is this possible. I am using Forms 5.
: : Thanx for any help.
: : Pankaj Patel.
: Hi
: You need that scrollbar under the item? You can set length
of
: text item and its size independently, so you can have text
item
: char(30) with size of 10 characters.
An alternative is to declare the item as a multi-line text item
with wrap set on. This would give you a vertical scroll bar on
the item.
Another option is to programmaticaly pop up an Editor, each time
focus is moved to the item, or to actually change the width of
the item when focus moves to it (and shrink it back when focus
moves away.
Simon Hedges
Gloucester
UK
null -
Help with Horizontal Menu Bar in IE
I am having trouble with my menu bar in IE. It works fine in Opera, Firefox, and Safari. In IE when you hover over it it opens on the left hand side and not straight down. I have tried many things others have suggested with no luck. I am not very good with code and this is the first website I have worked on as part of my job (wasn't hired on as a web designer! I work on a horse farm!). Here is the link to the site www.garnercreekfarms.com.
Here is my JS:
// SpryMenuBar.js - version 0.12 - Spry Pre-Release 1.6.1
// Copyright (c) 2006. Adobe Systems Incorporated.
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
// * Neither the name of Adobe Systems Incorporated nor the names of its
// contributors may be used to endorse or promote products derived from this
// software without specific prior written permission.
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
SpryMenuBar.js
This file handles the JavaScript for Spry Menu Bar. You should have no need
to edit this file. Some highlights of the MenuBar object is that timers are
used to keep submenus from showing up until the user has hovered over the parent
menu item for some time, as well as a timer for when they leave a submenu to keep
showing that submenu until the timer fires.
var Spry; if (!Spry) Spry = {}; if (!Spry.Widget) Spry.Widget = {};
Spry.BrowserSniff = function()
var b = navigator.appName.toString();
var up = navigator.platform.toString();
var ua = navigator.userAgent.toString();
this.mozilla = this.ie = this.opera = this.safari = false;
var re_opera = /Opera.([0-9\.]*)/i;
var re_msie = /MSIE.([0-9\.]*)/i;
var re_gecko = /gecko/i;
var re_safari = /(applewebkit|safari)\/([\d\.]*)/i;
var r = false;
if ( (r = ua.match(re_opera))) {
this.opera = true;
this.version = parseFloat(r[1]);
} else if ( (r = ua.match(re_msie))) {
this.ie = true;
this.version = parseFloat(r[1]);
} else if ( (r = ua.match(re_safari))) {
this.safari = true;
this.version = parseFloat(r[2]);
} else if (ua.match(re_gecko)) {
var re_gecko_version = /rv:\s*([0-9\.]+)/i;
r = ua.match(re_gecko_version);
this.mozilla = true;
this.version = parseFloat(r[1]);
this.windows = this.mac = this.linux = false;
this.Platform = ua.match(/windows/i) ? "windows" :
(ua.match(/linux/i) ? "linux" :
(ua.match(/mac/i) ? "mac" :
ua.match(/unix/i)? "unix" : "unknown"));
this[this.Platform] = true;
this.v = this.version;
if (this.safari && this.mac && this.mozilla) {
this.mozilla = false;
Spry.is = new Spry.BrowserSniff();
// Constructor for Menu Bar
// element should be an ID of an unordered list (<ul> tag)
// preloadImage1 and preloadImage2 are images for the rollover state of a menu
Spry.Widget.MenuBar = function(element, opts)
this.init(element, opts);
Spry.Widget.MenuBar.prototype.init = function(element, opts)
this.element = this.getElement(element);
// represents the current (sub)menu we are operating on
this.currMenu = null;
this.showDelay = 250;
this.hideDelay = 600;
if(typeof document.getElementById == 'undefined' || (navigator.vendor == 'Apple Computer, Inc.' && typeof window.XMLHttpRequest == 'undefined') || (Spry.is.ie && typeof document.uniqueID == 'undefined'))
// bail on older unsupported browsers
return;
// Fix IE6 CSS images flicker
if (Spry.is.ie && Spry.is.version < 7){
try {
document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}
this.upKeyCode = Spry.Widget.MenuBar.KEY_UP;
this.downKeyCode = Spry.Widget.MenuBar.KEY_DOWN;
this.leftKeyCode = Spry.Widget.MenuBar.KEY_LEFT;
this.rightKeyCode = Spry.Widget.MenuBar.KEY_RIGHT;
this.escKeyCode = Spry.Widget.MenuBar.KEY_ESC;
this.hoverClass = 'MenuBarItemHover';
this.subHoverClass = 'MenuBarItemSubmenuHover';
this.subVisibleClass ='MenuBarSubmenuVisible';
this.hasSubClass = 'MenuBarItemSubmenu';
this.activeClass = 'MenuBarActive';
this.isieClass = 'MenuBarItemIE';
this.verticalClass = 'MenuBarVertical';
this.horizontalClass = 'MenuBarHorizontal';
this.enableKeyboardNavigation = true;
this.hasFocus = false;
// load hover images now
if(opts)
for(var k in opts)
if (typeof this[k] == 'undefined')
var rollover = new Image;
rollover.src = opts[k];
Spry.Widget.MenuBar.setOptions(this, opts);
// safari doesn't support tabindex
if (Spry.is.safari)
this.enableKeyboardNavigation = false;
if(this.element)
this.currMenu = this.element;
var items = this.element.getElementsByTagName('li');
for(var i=0; i<items.length; i++)
if (i > 0 && this.enableKeyboardNavigation)
items[i].getElementsByTagName('a')[0].tabIndex='-1';
this.initialize(items[i], element);
if(Spry.is.ie)
this.addClassName(items[i], this.isieClass);
items[i].style.position = "static";
if (this.enableKeyboardNavigation)
var self = this;
this.addEventListener(document, 'keydown', function(e){self.keyDown(e); }, false);
if(Spry.is.ie)
if(this.hasClassName(this.element, this.verticalClass))
this.element.style.position = "relative";
var linkitems = this.element.getElementsByTagName('a');
for(var i=0; i<linkitems.length; i++)
linkitems[i].style.position = "relative";
Spry.Widget.MenuBar.KEY_ESC = 27;
Spry.Widget.MenuBar.KEY_UP = 38;
Spry.Widget.MenuBar.KEY_DOWN = 40;
Spry.Widget.MenuBar.KEY_LEFT = 37;
Spry.Widget.MenuBar.KEY_RIGHT = 39;
Spry.Widget.MenuBar.prototype.getElement = function(ele)
if (ele && typeof ele == "string")
return document.getElementById(ele);
return ele;
Spry.Widget.MenuBar.prototype.hasClassName = function(ele, className)
if (!ele || !className || !ele.className || ele.className.search(new RegExp("\\b" + className + "\\b")) == -1)
return false;
return true;
Spry.Widget.MenuBar.prototype.addClassName = function(ele, className)
if (!ele || !className || this.hasClassName(ele, className))
return;
ele.className += (ele.className ? " " : "") + className;
Spry.Widget.MenuBar.prototype.removeClassName = function(ele, className)
if (!ele || !className || !this.hasClassName(ele, className))
return;
ele.className = ele.className.replace(new RegExp("\\s*\\b" + className + "\\b", "g"), "");
// addEventListener for Menu Bar
// attach an event to a tag without creating obtrusive HTML code
Spry.Widget.MenuBar.prototype.addEventListener = function(element, eventType, handler, capture)
try
if (element.addEventListener)
element.addEventListener(eventType, handler, capture);
else if (element.attachEvent)
element.attachEvent('on' + eventType, handler);
catch (e) {}
// createIframeLayer for Menu Bar
// creates an IFRAME underneath a menu so that it will show above form controls and ActiveX
Spry.Widget.MenuBar.prototype.createIframeLayer = function(menu)
var layer = document.createElement('iframe');
layer.tabIndex = '-1';
layer.src = 'javascript:""';
layer.frameBorder = '0';
layer.scrolling = 'no';
menu.parentNode.appendChild(layer);
layer.style.left = menu.offsetLeft + 'px';
layer.style.top = menu.offsetTop + 'px';
layer.style.width = menu.offsetWidth + 'px';
layer.style.height = menu.offsetHeight + 'px';
// removeIframeLayer for Menu Bar
// removes an IFRAME underneath a menu to reveal any form controls and ActiveX
Spry.Widget.MenuBar.prototype.removeIframeLayer = function(menu)
var layers = ((menu == this.element) ? menu : menu.parentNode).getElementsByTagName('iframe');
while(layers.length > 0)
layers[0].parentNode.removeChild(layers[0]);
// clearMenus for Menu Bar
// root is the top level unordered list (<ul> tag)
Spry.Widget.MenuBar.prototype.clearMenus = function(root)
var menus = root.getElementsByTagName('ul');
for(var i=0; i<menus.length; i++)
this.hideSubmenu(menus[i]);
this.removeClassName(this.element, this.activeClass);
// bubbledTextEvent for Menu Bar
// identify bubbled up text events in Safari so we can ignore them
Spry.Widget.MenuBar.prototype.bubbledTextEvent = function()
return Spry.is.safari && (event.target == event.relatedTarget.parentNode || (event.eventPhase == 3 && event.target.parentNode == event.relatedTarget));
// showSubmenu for Menu Bar
// set the proper CSS class on this menu to show it
Spry.Widget.MenuBar.prototype.showSubmenu = function(menu)
if(this.currMenu)
this.clearMenus(this.currMenu);
this.currMenu = null;
if(menu)
this.addClassName(menu, this.subVisibleClass);
if(typeof document.all != 'undefined' && !Spry.is.opera && navigator.vendor != 'KDE')
if(!this.hasClassName(this.element, this.horizontalClass) || menu.parentNode.parentNode != this.element)
menu.style.top = menu.parentNode.offsetTop + 'px';
if(Spry.is.ie && Spry.is.version < 7)
this.createIframeLayer(menu);
this.addClassName(this.element, this.activeClass);
// hideSubmenu for Menu Bar
// remove the proper CSS class on this menu to hide it
Spry.Widget.MenuBar.prototype.hideSubmenu = function(menu)
if(menu)
this.removeClassName(menu, this.subVisibleClass);
if(typeof document.all != 'undefined' && !Spry.is.opera && navigator.vendor != 'KDE')
menu.style.top = '';
menu.style.left = '';
if(Spry.is.ie && Spry.is.version < 7)
this.removeIframeLayer(menu);
// initialize for Menu Bar
// create event listeners for the Menu Bar widget so we can properly
// show and hide submenus
Spry.Widget.MenuBar.prototype.initialize = function(listitem, element)
var opentime, closetime;
var link = listitem.getElementsByTagName('a')[0];
var submenus = listitem.getElementsByTagName('ul');
var menu = (submenus.length > 0 ? submenus[0] : null);
if(menu)
this.addClassName(link, this.hasSubClass);
if(!Spry.is.ie)
// define a simple function that comes standard in IE to determine
// if a node is within another node
listitem.contains = function(testNode)
// this refers to the list item
if(testNode == null)
return false;
if(testNode == this)
return true;
else
return this.contains(testNode.parentNode);
// need to save this for scope further down
var self = this;
this.addEventListener(listitem, 'mouseover', function(e){self.mouseOver(listitem, e);}, false);
this.addEventListener(listitem, 'mouseout', function(e){if (self.enableKeyboardNavigation) self.clearSelection(); self.mouseOut(listitem, e);}, false);
if (this.enableKeyboardNavigation)
this.addEventListener(link, 'blur', function(e){self.onBlur(listitem);}, false);
this.addEventListener(link, 'focus', function(e){self.keyFocus(listitem, e);}, false);
Spry.Widget.MenuBar.prototype.keyFocus = function (listitem, e)
this.lastOpen = listitem.getElementsByTagName('a')[0];
this.addClassName(this.lastOpen, listitem.getElementsByTagName('ul').length > 0 ? this.subHoverClass : this.hoverClass);
this.hasFocus = true;
Spry.Widget.MenuBar.prototype.onBlur = function (listitem)
this.clearSelection(listitem);
Spry.Widget.MenuBar.prototype.clearSelection = function(el){
//search any intersection with the current open element
if (!this.lastOpen)
return;
if (el)
el = el.getElementsByTagName('a')[0];
// check children
var item = this.lastOpen;
while (item != this.element)
var tmp = el;
while (tmp != this.element)
if (tmp == item)
return;
try{
tmp = tmp.parentNode;
}catch(err){break;}
item = item.parentNode;
var item = this.lastOpen;
while (item != this.element)
this.hideSubmenu(item.parentNode);
var link = item.getElementsByTagName('a')[0];
this.removeClassName(link, this.hoverClass);
this.removeClassName(link, this.subHoverClass);
item = item.parentNode;
this.lastOpen = false;
Spry.Widget.MenuBar.prototype.keyDown = function (e)
if (!this.hasFocus)
return;
if (!this.lastOpen)
this.hasFocus = false;
return;
var e = e|| event;
var listitem = this.lastOpen.parentNode;
var link = this.lastOpen;
var submenus = listitem.getElementsByTagName('ul');
var menu = (submenus.length > 0 ? submenus[0] : null);
var hasSubMenu = (menu) ? true : false;
var opts = [listitem, menu, null, this.getSibling(listitem, 'previousSibling'), this.getSibling(listitem, 'nextSibling')];
if (!opts[3])
opts[2] = (listitem.parentNode.parentNode.nodeName.toLowerCase() == 'li')?listitem.parentNode.parentNode:null;
var found = 0;
switch (e.keyCode){
case this.upKeyCode:
found = this.getElementForKey(opts, 'y', 1);
break;
case this.downKeyCode:
found = this.getElementForKey(opts, 'y', -1);
break;
case this.leftKeyCode:
found = this.getElementForKey(opts, 'x', 1);
break;
case this.rightKeyCode:
found = this.getElementForKey(opts, 'x', -1);
break;
case this.escKeyCode:
case 9:
this.clearSelection();
this.hasFocus = false;
default: return;
switch (found)
case 0: return;
case 1:
//subopts
this.mouseOver(listitem, e);
break;
case 2:
//parent
this.mouseOut(opts[2], e);
break;
case 3:
case 4:
// left - right
this.removeClassName(link, hasSubMenu ? this.subHoverClass : this.hoverClass);
break;
var link = opts[found].getElementsByTagName('a')[0];
if (opts[found].nodeName.toLowerCase() == 'ul')
opts[found] = opts[found].getElementsByTagName('li')[0];
this.addClassName(link, opts[found].getElementsByTagName('ul').length > 0 ? this.subHoverClass : this.hoverClass);
this.lastOpen = link;
opts[found].getElementsByTagName('a')[0].focus();
//stop further event handling by the browser
return Spry.Widget.MenuBar.stopPropagation(e);
Spry.Widget.MenuBar.prototype.mouseOver = function (listitem, e)
var link = listitem.getElementsByTagName('a')[0];
var submenus = listitem.getElementsByTagName('ul');
var menu = (submenus.length > 0 ? submenus[0] : null);
var hasSubMenu = (menu) ? true : false;
if (this.enableKeyboardNavigation)
this.clearSelection(listitem);
if(this.bubbledTextEvent())
// ignore bubbled text events
return;
if (listitem.closetime)
clearTimeout(listitem.closetime);
if(this.currMenu == listitem)
this.currMenu = null;
// move the focus too
if (this.hasFocus)
link.focus();
// show menu highlighting
this.addClassName(link, hasSubMenu ? this.subHoverClass : this.hoverClass);
this.lastOpen = link;
if(menu && !this.hasClassName(menu, this.subHoverClass))
var self = this;
listitem.opentime = window.setTimeout(function(){self.showSubmenu(menu);}, this.showDelay);
Spry.Widget.MenuBar.prototype.mouseOut = function (listitem, e)
var link = listitem.getElementsByTagName('a')[0];
var submenus = listitem.getElementsByTagName('ul');
var menu = (submenus.length > 0 ? submenus[0] : null);
var hasSubMenu = (menu) ? true : false;
if(this.bubbledTextEvent())
// ignore bubbled text events
return;
var related = (typeof e.relatedTarget != 'undefined' ? e.relatedTarget : e.toElement);
if(!listitem.contains(related))
if (listitem.opentime)
clearTimeout(listitem.opentime);
this.currMenu = listitem;
// remove menu highlighting
this.removeClassName(link, hasSubMenu ? this.subHoverClass : this.hoverClass);
if(menu)
var self = this;
listitem.closetime = window.setTimeout(function(){self.hideSubmenu(menu);}, this.hideDelay);
if (this.hasFocus)
link.blur();
Spry.Widget.MenuBar.prototype.getSibling = function(element, sibling)
var child = element[sibling];
while (child && child.nodeName.toLowerCase() !='li')
child = child[sibling];
return child;
Spry.Widget.MenuBar.prototype.getElementForKey = function(els, prop, dir)
var found = 0;
var rect = Spry.Widget.MenuBar.getPosition;
var ref = rect(els[found]);
var hideSubmenu = false;
//make the subelement visible to compute the position
if (els[1] && !this.hasClassName(els[1], this.MenuBarSubmenuVisible))
els[1].style.visibility = 'hidden';
this.showSubmenu(els[1]);
hideSubmenu = true;
var isVert = this.hasClassName(this.element, this.verticalClass);
var hasParent = els[0].parentNode.parentNode.nodeName.toLowerCase() == 'li' ? true : false;
for (var i = 1; i < els.length; i++){
//when navigating on the y axis in vertical menus, ignore children and parents
if(prop=='y' && isVert && (i==1 || i==2))
continue;
//when navigationg on the x axis in the FIRST LEVEL of horizontal menus, ignore children and parents
if(prop=='x' && !isVert && !hasParent && (i==1 || i==2))
continue;
if (els[i])
var tmp = rect(els[i]);
if ( (dir * tmp[prop]) < (dir * ref[prop]))
ref = tmp;
found = i;
// hide back the submenu
if (els[1] && hideSubmenu){
this.hideSubmenu(els[1]);
els[1].style.visibility = '';
return found;
Spry.Widget.MenuBar.camelize = function(str)
if (str.indexOf('-') == -1){
return str;
var oStringList = str.split('-');
var isFirstEntry = true;
var camelizedString = '';
for(var i=0; i < oStringList.length; i++)
if(oStringList[i].length>0)
if(isFirstEntry)
camelizedString = oStringList[i];
isFirstEntry = false;
else
var s = oStringList[i];
camelizedString += s.charAt(0).toUpperCase() + s.substring(1);
return camelizedString;
Spry.Widget.MenuBar.getStyleProp = function(element, prop)
var value;
try
if (element.style)
value = element.style[Spry.Widget.MenuBar.camelize(prop)];
if (!value)
if (document.defaultView && document.defaultView.getComputedStyle)
var css = document.defaultView.getComputedStyle(element, null);
value = css ? css.getPropertyValue(prop) : null;
else if (element.currentStyle)
value = element.currentStyle[Spry.Widget.MenuBar.camelize(prop)];
catch (e) {}
return value == 'auto' ? null : value;
Spry.Widget.MenuBar.getIntProp = function(element, prop)
var a = parseInt(Spry.Widget.MenuBar.getStyleProp(element, prop),10);
if (isNaN(a))
return 0;
return a;
Spry.Widget.MenuBar.getPosition = function(el, doc)
doc = doc || document;
if (typeof(el) == 'string') {
el = doc.getElementById(el);
if (!el) {
return false;
if (el.parentNode === null || Spry.Widget.MenuBar.getStyleProp(el, 'display') == 'none') {
//element must be visible to have a box
return false;
var ret = {x:0, y:0};
var parent = null;
var box;
if (el.getBoundingClientRect) { // IE
box = el.getBoundingClientRect();
var scrollTop = doc.documentElement.scrollTop || doc.body.scrollTop;
var scrollLeft = doc.documentElement.scrollLeft || doc.body.scrollLeft;
ret.x = box.left + scrollLeft;
ret.y = box.top + scrollTop;
} else if (doc.getBoxObjectFor) { // gecko
box = doc.getBoxObjectFor(el);
ret.x = box.x;
ret.y = box.y;
} else { // safari/opera
ret.x = el.offsetLeft;
ret.y = el.offsetTop;
parent = el.offsetParent;
if (parent != el) {
while (parent) {
ret.x += parent.offsetLeft;
ret.y += parent.offsetTop;
parent = parent.offsetParent;
// opera & (safari absolute) incorrectly account for body offsetTop
if (Spry.is.opera || Spry.is.safari && Spry.Widget.MenuBar.getStyleProp(el, 'position') == 'absolute')
ret.y -= doc.body.offsetTop;
if (el.parentNode)
parent = el.parentNode;
else
parent = null;
if (parent.nodeName){
var cas = parent.nodeName.toUpperCase();
while (parent && cas != 'BODY' && cas != 'HTML') {
cas = parent.nodeName.toUpperCase();
ret.x -= parent.scrollLeft;
ret.y -= parent.scrollTop;
if (parent.parentNode)
parent = parent.parentNode;
else
parent = null;
return ret;
Spry.Widget.MenuBar.stopPropagation = function(ev)
if (ev.stopPropagation)
ev.stopPropagation();
else
ev.cancelBubble = true;
if (ev.preventDefault)
ev.preventDefault();
else
ev.returnValue = false;
Spry.Widget.MenuBar.setOptions = function(obj, optionsObj, ignoreUndefinedProps)
if (!optionsObj)
return;
for (var optionName in optionsObj)
if (ignoreUndefinedProps && optionsObj[optionName] == undefined)
continue;
obj[optionName] = optionsObj[optionName];
Here is my CSS:
@charset "UTF-8";
/* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
/* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
LAYOUT INFORMATION: describes box model, positioning, z-order
/* The outermost container of the Menu Bar, an auto width box with no margin or padding */
ul.MenuBarHorizontal
margin: auto;
padding: 0;
list-style-type: none;
font-size: 100%;
cursor: default;
width: 70em;
/* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
ul.MenuBarActive
z-index: 1000;
/* Menu item containers, position children relative to this container and are a fixed width */
ul.MenuBarHorizontal li
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
position: relative;
text-align: left;
cursor: pointer;
width: 10em;
float: left;
color: #F59CB0;
background-color: #FFF;
/* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
ul.MenuBarHorizontal ul
width: 250px;
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
z-index: 1020;
cursor: default;
width: 9em;
position: absolute;
left: -1000em;
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
left: 9px;
color: #EF9CCF;
background-color: #FFF;
/* Menu item containers are same fixed width as parent */
ul.MenuBarHorizontal ul li
width: 8.2em;
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
ul.MenuBarHorizontal ul ul
position: absolute;
margin: -5% 0 0 95%;
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
left: auto;
top: 0;
DESIGN INFORMATION: describes color scheme, borders, fonts
/* Submenu containers have borders on all sides */
ul.MenuBarHorizontal ul
border: 1px solid #CCC;
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarHorizontal a
display: block;
cursor: pointer;
background-color: #FFF;
padding: 0.5em 0.75em;
color: #EB91B6;
text-decoration: none;
text-align: center;
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
background-color: #FFF;
color: #EF93B0;
text-align: center;
font-size: 100%;
/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
background-color: #FFF;
color: #EF93B0;
SUBMENU INDICATION: styles if there is a submenu under a given menu item
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenu
background-image: url(SpryMenuBarDown.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
color: #EF93B0;
background-color: #FFF;
text-align: center;
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
background-image: url(SpryMenuBarRight.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
color: #EF9CCF;
background-color: #FFF;
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
background-image: url(SpryMenuBarDownHover.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
color: #EF93B0;
background-color: #FFF;
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
background-image: url(SpryMenuBarRightHover.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
BROWSER HACKS: the hacks below should not be changed unless you are an expert
/* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
ul.MenuBarHorizontal iframe
position: absolute;
z-index: 1010;
filter:alpha(opacity:0.1);
/* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
@media screen, projection
ul.MenuBarHorizontal li.MenuBarItemIE
display: inline;
f\loat: left;
background: #FFF;
#table2 tr .header p {
font-family: "Apple Chancery";
#table2 tr .header .regular2 {
font-family: "Times New Roman", Times, serif;Alyssa,
Have you tried putting this rule back as it was originally:
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
left: auto; /*was 9px*/
color: #EF9CCF;
background-color: #FFF;
That is, changing your 9px back to auto.
And giving us a link (as you did) is much better than printing out the code for us! Thanks!
Beth -
Help With Scrolling Menu / Button Rollovers
First thank you to anyone who can answer and help with this
question.
http://paragon.sortismarketing.com
- at this link I have created a site with a simple scrolling menu.
Now what I want to happen is when you rollOver the buttons on the
scrolling menu they get larger and then smaller again after you
roll off them.
I know how to do this with tweening in a non moving
environment, by making them a movie clip instead of button. But for
some reason when I did this in this case it screwed the menu all up
and made it go crazy. Is there a way to do this with action script
that isn't going to screw up the underlying code for the
scrolling?You can use the below code also. As your mouse pointer goes
over the down, it will scroll down.
on(rollOver){
scrolltext.scroll -= 1; -
Need Help with Scrolling Problem
I have a JTree displayed in scrollpane. Based on search criterial I select the nodes where the search criteria is found. If the match is located off the screen further down into the tree, the node is highlighted but the scrollpane doesn't automatically scroll down to show it. Any help with this problem is appreciated.
Wow.. Thanks. I thought I would need some fancy code to handle this problem. scrollPathToVisible did it for me. Thanks.
-
Help with rollover menu bar on my Home page
I would like some help with my site
www.didgesoundtherapy.co.uk
Please look at my menu bar on the home page.
Roll over the buttons on the menu of the home page and they come up with the wrong message when it is rolled over. I hope this makes sense.
I would love some help on this
Kind regards
GreggEach button displays the same text with html tacked on as the button except for the Home page of course. What should the text be?
OT -
Help with scrolling thumbnails photogallery
i need some help with this photo gallery im working on. im pretty sure i have almost everything correct but for some reason i cant get the thumbnails when clicked to link up with the img. i want it to show.
well i cant really upload the file here i just found out so i can email it to whoever leaves there email
if someone could take a look at the file and tell me what im doing wrong that would be so helpful ive been working on it for the past 2 days trying to fig. out whats wrong searching everywhere and i just cant fig. it out.
thanks for the helpPlease don't duplicate postings.
-
Hello, I have two templates that I am using. Both have a horizontal menu bar across the top of the page and then two Vertical Spry Menu Bars down the left hand side of the page - one above the other. On one template, all menu bars are working correctly. On the other template, 2 out of three are working correctly. Not sure what's happening here. The spry menu bar that is not working correctly is under "Books & Materials" heading. The menu bar is supposed to turn green when you mouse over it, but instead everything turns white and looks like it "disappears". I have no idea why it would work on one template and not the other. Or for that matter, why it is working on one vertical spry menu bar, but not the other on the same page. Can anyone help me? www.springerlejoy.com/proanimals4.html This is a page that shows where it is not working. Basically, all of the products pages are having this problem. If you go to the home page: www.springerlejoy.com you will see that this page is working - using a different template. Can anyone help me? I'm at a loss! Thanks!
Debbie
Here is the code for the template that is NOT working:
<!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; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<link href="../thrColFixHdr.css" rel="stylesheet" type="text/css" /><!--[if IE 5]>
<style type="text/css">
/* place css box model fixes for IE 5* in this conditional comment */
.thrColFixHdr #sidebar1 { width: 180px; }
.thrColFixHdr #sidebar2 { width: 190px; }
</style>
<![endif]--><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.thrColFixHdr #sidebar2, .thrColFixHdr #sidebar1 { padding-top: 30px; }
.thrColFixHdr #mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
<!--[if IE]>
<style type="text/css">
.thrColFixHdr #container { zoom: 1; }
</style>
<![endif]-->
<style type="text/css">
<!--
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
document.write(unescape("%3Cscript
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-11559638-1");
pageTracker._trackPageview();
} catch(err) {}</script>
body {
background-color: #CCEA86;
.maincontenthdr {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 24px;
font-style: italic;
font-weight: bold;
color: #530000;
text-align: center;
height: 29px;
.maincontenthdr1 {
font-family: Verdana, Geneva, sans-serif;
font-size: 16px;
font-style: normal;
font-weight: bold;
color: #600;
.maincontenttxt {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
font-style: normal;
font-weight: normal;
color: #000;
/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */
.thumbnail{
position: relative;
z-index: 0;
.thumbnail:hover{
background-color: transparent;
z-index: 50;
.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: lightyellow;
padding: 5px;
left: -800px;
border: 1px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
.thumbnail:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
top: 0;
left: 60px; /*position where enlarged image should offset horizontally */
-->
</style>
<script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
//-->
</script>
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
background-color: #CCEA86;
-->
</style>
<link href="../SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
</head>
<body class="thrColFixHdr" onload="MM_preloadImages('../history2.gif')">
<div id="container">
<div id="header">
<table width="810" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div class="hdrtxt">
<p>2104 Clairmont Drive<br />
Pittsburgh, PA 15241<br />
T 412-616-9066<br />
F 412-220-2074 </p>
</div></td>
<td align="center"><a href="../index.html"><img src="../logo3.jpg" width="313" height="149" border="0" /></a></td>
<td><div class="rthdrtxt">Cookie Molds from <br />
the Old World for <br />
Baking and Crafts</div>
</td>
</tr>
<tr>
<td width="189" background="../lines.gif"></td>
<td width="409" align="center" background="../lines.gif"> </td>
<td width="182" background="../lines.gif"></td>
</tr>
<tr bgcolor="#BB7C4E">
<td colspan="3" align="left"><ul id="MenuBar1" class="MenuBarHorizontal">
<li><a href="../index.html">Home</a></li>
<li><a href="../aboutus4.html">About Us</a></li>
<li><a href="../howtoorder4.html">How To Order</a> </li>
<li><a href="../information4.html">Information</a></li>
<li><a href="../contactus4.html">Contact Us</a></li>
<li><a href="../recipeshome.html">Recipes</a></li>
<li><a href="../events4.htm">Events</a></li>
<li><a href="../gallery4.html">Photo Gallery</a></li>
</ul></td>
</tr>
</table>
<div class="divmenubar"> </div>
</div>
<div id="sidebar1">
<div class="FeatureItem">
<div align="center"><span class="FeatureItemHead"> </span>
<div>
<div class="Products">Products
<br />
<br />
</div>
<div class="proHeaders">Molds</div>
</div>
</div>
<ul id="MenuBar2" class="MenuBarVertical">
<li><a href="../proangels4.html">Angels</a> </li>
<li><a href="../proanimals4.html">Animals</a></li>
<li><a href="../probaby4.html">Baby</a> </li>
<li><a href="../probiblical4.html">Biblical</a></li>
<li><a href="../probirds41.html">Birds</a></li>
<li><a href="../prochildren4.html">Children</a></li>
<li><a href="../prochristgen4.html">Christmas, General</a></li>
<li><a href="../prochristrel41.html">Christmas, Religious</a></li>
<li><a href="../procornucopia4.html">Cornucopia</a></li>
<li><a href="../procultfig4.html">Cultural Figures</a></li>
<li><a href="../profishing4.html">Fish</a></li>
<li><a href="../proflowers4.html">Flowers & Plants</a></li>
<li><a href="../profruits4.html">Fruit</a></li>
<li><a href="../progeometric4.html">Geometric</a></li>
<li><a href="../progermany4.html">Germany</a></li>
<li><a href="../prohearts4.html">Hearts</a></li>
<li><a href="../proinsects4.html">Insects</a></li>
<li><a href="../proluck4.html">Luck</a></li>
<li><a href="../promarriage4.html">Marriage</a></li>
<li><a href="../promultiple4.html">Multiple Images</a></li>
<li><a href="../promusic4.html">Music</a></li>
<li><a href="../pronautical4.html">Nautical</a></li>
<li><a href="../proscenes4.html">Old Time Scenes</a></li>
<li><a href="../propeople4.html">People in Old Times</a></li>
<li><a href="../prosayings4.html">Sayings</a></li>
<li><a href="../proschool4.html">School</a></li>
<li><a href="../proseasons4.html">Seasons</a></li>
<li><a href="../prostar4.html">Star</a></li>
<li><a href="../prostory4.html">Story / Legend Characters</a></li>
<li><a href="../prosunmoon4.html">Sun & Moon</a></li>
<li><a href="../proswitzerland4.html">Switzerland</a></li>
<li><a href="../prosymbols4.html">Symbols</a></li>
<li><a href="../protransportation4.html">Transportation</a></li>
<li><a href="../prozodiac4.html">Zodiac</a> </li>
</ul>
<div class="proHeaders"><br />
Books & Materials</div>
<ul id="MenuBar3" class="MenuBarVertical">
<li><a href="../probooks4.html">Books</a> </li>
<li><a href="../procookies4.html">Cookies</a></li>
<li><a href="../procutters4.html">Cutters</a> </li>
<li><a href="../proflavoring4.html">Flavoring</a></li>
<li><a href="../profoodcolor4.html">Food Coloring</a></li>
<li><a href="../promaterials4.html">Materials</a></li>
<li><a href="../protools4.html">Tools</a><br /></li>
</ul>
</div>
</div>
<div></div>
<div id="sidebar2">
<div class="nxtevents">
<div class="MenuBarActive">
<div><a href="http://order.store.yahoo.net/cgi-bin/wg-order?yhst-40727766898036 "><img src="../cart1.gif" name="imgfloatright" width="87" height="26" border="0" id="imgfloatright" /></a></div>
<p><br />
<br />
</p>
</div>
<div class="nxtevents">
<div class="maincontenttxt">
<div class="moldscenter"><span class="maincontenthdr1">Featured Item<br />
</span>
<p class="thumbnail"><a class="thumbnail" href="#thumb"><span><img src="1142.jpg" /></span></a> <a class="thumbnail" href="#thumb"><a class="thumbnail" href="#thumb"><img src="1142-1.jpg" width="93px" height="100px" border="0" /></a></p>
<br />
<table width="130" cellpadding="0" cellspacing="0">
<tr>
<td width="61" align="right" class="maincontenttxt">1142</td>
<td width="67" align="right" class="maincontenttxt"><div align="right">$31.00</div></td>
</tr>
</table>
<br />
<a href="../proanimals4.html">The Three Rabbits springerle mold, dia. 3.5" (90mm)</a><br />
<br />
<form method="post" action="<!--#ystore_order id=1142 -->">
<p align="left" class="buttoncenter">
<input type="submit" value="Order Now" />
</p>
</form><br />
</div>
<p class="nxteventshdr">News... </p>
</div>
<p>2/8: Just Arrived from Switzerland today<br />
<strong><U><br />
<a href="../prohearts4.html">11 New Heart Molds</a></U></strong><a href="../prohearts4.html"><U>!</U></a><U><br />
</U></p>
</div>
<div id="moreevents">
<p>2/7: See our new photos in the <a href="../gallery4.html">Photo Gallery</a>!</p>
</div>
</div>
<div>
<p class="nxteventshdr">Newsletter</p>
<p class="nxtevents">To automatically receive our e-mail newsletter with new mold information, tips and tricks, photos of cookies and art, and historical profiles of featured molds, please fill in the form below and press <Submit></p>
<form method=post action="http://us.1.p6.webhosting.yahoo.com/forms?login=springerlejoy" id="form1" name="form1">
<p class="maincontenttxt">First Name
<input name="formFirstName" type="text" class="maincontenttxt" id="formFirstName" />
</p>
<p class="maincontenttxt">Last Name
<input name="FormLast" type="text" class="maincontenttxt" id="FormLast" />
</p>
<p><span class="maincontenttxt">Email Address
<input name="FormEmail" type="text" class="maincontenttxt" id="FormEmail" />
</span></p>
<div id="button">
<input type="submit" name="SubmitButton" id="SubmitButton" value="Submit" />
</div>
<p> </p>
</form>
<p> </p>
<p><a href="http://smallbusiness.yahoo.com/ecommerce/" target="_blank"><img src="http://us.i1.yimg.com/us.yimg.com/i/us/smallbiz/gr/ecomby_128bit.gif" alt="ecommerce provided by Yahoo! Small Business" width="118" height="55" border="0" align="middle"/></a> <br />
<br />
<a href="http://www.facebook.com/pages/Springerle-Joy/243604195833?ref=search&sid=1000000928365 99.173275996..1&v=wall#!/pages/Springerle-Joy/243604195833?v=wall&ref=search"><img src="../5u84f48n.gif" width="144" height="44" /></a> </p>
</div>
<!-- end #sidebar2 -->
</div>
<div id="mainContent">
<div class="maincontenthdr"> <!-- TemplateBeginEditable name="EditMainContHdr" -->
<p class="maincontenthdr">Products</p><div class="leafpic"><img src="../leaves3.jpg" width="420" height="32" /></div>
<!-- TemplateEndEditable --></div>
<div>
<div class="maincontenthdr1">
<table width="418" border="0" cellspacing="0" cellpadding="0">
<!-- TemplateBeginRepeat name="RepeatRegion1" -->
<tr>
<td width="87" rowspan="2" valign="top"><!-- TemplateBeginEditable name="EditRegion6" --> <!-- TemplateEndEditable --></td>
<td width="255" valign="bottom" class="itemno"><!-- TemplateBeginEditable name="EditRegion7" --> <!-- TemplateEndEditable --></td>
<td width="76" valign="bottom" class="price"><!-- TemplateBeginEditable name="EditRegion8" --> <!-- TemplateEndEditable --></td>
</tr>
<tr>
<td valign="top" class="maincontenttxt"><!-- TemplateBeginEditable name="EditRegion10" --> <!-- TemplateEndEditable --></td>
<td class="orderbutton"><!-- TemplateBeginEditable name="EditRegion11" --> <!-- TemplateEndEditable --></td>
</tr>
<!-- TemplateEndRepeat -->
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<p> </p>
<div class="maincontenttxt"></div>
<p> </p>
<div class="maincontenttxt"></div>
</div>
</div>
</div>
<p>
<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->
</p>
<p><br class="clearfloat" />
</p>
<div id="footer">
<div id="copyrighttxt">
<p>Copyright© by Springerle Joy, LLC 2010</p>
</div>
<!-- end #footer --></div>
<!-- end #container --></div>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html><script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
File cannot be found. Try
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
File cannot be found. Try
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<link href="file:///Macintosh HD/Users/julesmazur/Desktop/widgets/menubar/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
This link points to a local file on your local harddrive and can therefore not be found. However, this file is not needed because the file will be linked as above.
Gramps -
URGENT! Need help with scrolling on a JPanel!
Hello Guys! I guess there has been many postings about this subject in the forum, but the postings I found there.... still couldn't solve my problem...
So, straight to the problem:
I am drawing some primitive graphic on a JPanel. This JPanel is then placed in a JScrollPane. When running the code, the scrollbars are showing and the graphic is painted nicely. But when I try to scroll to see the parts of the graphics not visible in the current scrollbarview, nothing else than some flickering is happening... No movement what so ever...
What on earth must I do to activate the scroll functionality on my JPanel??? Please Help!
And yes, I have tried implementing the 'Scrollable' interface... But it did not make any difference...
Code snippets:
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import java.awt.geom.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.tree.*;
import java.util.*;
public class FilterComp extends JPanel {//implements Scrollable {
protected DefaultMutableTreeNode root;
protected Image buffer;
protected int lastW = 0;
protected int origoX = 0;
protected final StringBuffer sb = new StringBuffer();
// protected int maxUnitIncrement = 1;
protected JScrollPane scrollpane = new JScrollPane();
* Constructor for the FilterComp object
*@param scrollpane Description of the Parameter
public FilterComp(JScrollPane scrollpane) {
super();
// setPreferredSize(new Dimension(1000, 500));
this.setBackground(Color.magenta);
// setOpaque(false);
setLayout(
new BorderLayout() {
public Dimension preferredLayoutSize(Container cont) {
return new Dimension(1000, 600);
this.scrollpane = scrollpane;
scrollpane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
scrollpane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
scrollpane.setPreferredSize( new Dimension( 500, 500 ) );
scrollpane.getViewport().add( this, null );
// scrollpane.getViewport().setScrollMode(JViewport.SIMPLE_SCROLL_MODE);
repaint();
public void paintComponent(Graphics g) {
super.paintComponent(g);
int w = getSize().width;
if (w != lastW) {
buffer = null;
Graphics2D g2 = (Graphics2D) g;
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
if (root != null) {
int h = getHeight(root);
if (buffer == null) {
buffer = new BufferedImage(getWidth(), getHeight(), BufferedImage.TYPE_INT_ARGB);
Graphics2D g3 = (Graphics2D) buffer.getGraphics();
g3.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g3.setColor(Color.black);
g3.setStroke(new BasicStroke(2));
paint(g3, (w / 2) + origoX, 10, w / 2, root);
lastW = w;
AffineTransform old = g2.getTransform();
AffineTransform trans = new AffineTransform();
trans.translate((w / 2) + origoX, (getHeight() - (h * 40)) / 2);
g2.setTransform(trans);
g2.drawImage(buffer, (-w / 2) + origoX, 0, null);
g2.setTransform(old);
updateUI();
* Description of the Method
*@param g Description of the Parameter
public void update(Graphics g) {
// Call paint to reduce flickering
paint(g);
* Description of the Method
*@param g2 Description of the Parameter
*@param x Description of the Parameter
*@param y Description of the Parameter
*@param w Description of the Parameter
*@param node Description of the Parameter
private void paint(Graphics2D g2, int x, int y, int w, DefaultMutableTreeNode node) {
if (node.getChildCount() == 2) {
DefaultMutableTreeNode c1 = (DefaultMutableTreeNode) node.getChildAt(0);
DefaultMutableTreeNode c2 = (DefaultMutableTreeNode) node.getChildAt(1);
if (c1.getChildCount() == 0 && c2.getChildCount() == 0) {
String s = c1.getUserObject().toString() + " " + node.getUserObject() + " " + c2.getUserObject();
paint(g2, x, y, s);
} else {
g2.drawLine(x - (w / 2), y, x + (w / 2), y);
Font f = g2.getFont();
g2.setFont(new Font(f.getName(), Font.BOLD | Font.ITALIC, f.getSize() + 2));
paint(g2, x, y, node.getUserObject().toString());
g2.setFont(f);
g2.drawLine(x - (w / 2), y, x - (w / 2), y + 40);
g2.drawLine(x + (w / 2), y, x + (w / 2), y + 40);
paint(g2, x - (w / 2), y + 40, w / 2, c1);
paint(g2, x + (w / 2), y + 40, w / 2, c2);
} else if (node.getChildCount() == 0) {
paint(g2, x, y, node.getUserObject().toString());
* Description of the Method
*@param g2 Description of the Parameter
*@param x Description of the Parameter
*@param y Description of the Parameter
*@param s Description of the Parameter
private void paint(Graphics2D g2, int x, int y, String s) {
y += 10;
StringTokenizer st = new StringTokenizer(s, "\\", false);
if (s.indexOf("'") != -1 && st.countTokens() > 1) {
int sh = g2.getFontMetrics().getHeight();
while (st.hasMoreTokens()) {
String t = st.nextToken();
if (st.hasMoreTokens()) {
t += "/";
int sw = g2.getFontMetrics().stringWidth(t);
g2.drawString(t, x - (sw / 2), y);
y += sh;
} else {
int sw = g2.getFontMetrics().stringWidth(s);
g2.drawString(s, x - (sw / 2), y);
* Sets the root attribute of the FilterComp object
*@param root The new root value
public void setRoot(DefaultMutableTreeNode root) {
this.root = root;
buffer = null;
* Gets the root attribute of the FilterComp object
*@return The root value
public DefaultMutableTreeNode getRoot() {
return root;
* Gets the height attribute of the FilterComp object
*@param t Description of the Parameter
*@return The height value
private int getHeight(TreeNode t) {
int h = 1;
int c = t.getChildCount();
if (c > 0) {
if (c > 1) {
h += Math.max(getHeight(t.getChildAt(0)), getHeight(t.getChildAt(1)));
} else {
h += getHeight(t.getChildAt(0));
return h;
* Sets the x attribute of the FilterComp object
*@param x The new x value
public void setX(int x) {
origoX = x;
* Gets the x attribute of the FilterComp object
*@return The x value
public int getX() {
return origoX;
* Gets the preferredScrollableViewportSize attribute of the FilterComp
* object
*@return The preferredScrollableViewportSize value
// public Dimension getPreferredScrollableViewportSize() {
// return getPreferredSize();
* Gets the scrollableBlockIncrement attribute of the FilterComp object
*@param r Description of the Parameter
*@param orientation Description of the Parameter
*@param direction Description of the Parameter
*@return The scrollableBlockIncrement value
// public int getScrollableBlockIncrement(Rectangle r, int orientation, int direction) {
// return 10;
* Gets the scrollableTracksViewportHeight attribute of the FilterComp object
*@return The scrollableTracksViewportHeight value
// public boolean getScrollableTracksViewportHeight() {
// return false;
* Gets the scrollableTracksViewportWidth attribute of the FilterComp object
*@return The scrollableTracksViewportWidth value
// public boolean getScrollableTracksViewportWidth() {
// return false;
* Gets the scrollableUnitIncrement attribute of the FilterComp object
*@param r Description of the Parameter
*@param orientation Description of the Parameter
*@param direction Description of the Parameter
*@return The scrollableUnitIncrement value
// public int getScrollableUnitIncrement(Rectangle r, int orientation, int direction) {
// return 10;
}The Scrollable interface should be implemented by a JPanel set as the JScrollPane's viewport or scrolling may not function. Although it is said to be only necessary for tables, lists, and trees, without it I have never had success with images. Even the Java Swing Tutorial on scrolling images with JScrollPane uses the Scrollable interface.
I donot know what you are doing wrong here, but I use JScrollPane with a JPanel implementing Scrollable interface and it works very well scrolling images drawn into the JPanel.
You can scroll using other components, such as the JScrollBar or even by using a MouseListener/MouseMotionListener combination, but this is all done behind the scenes with the use of JScrollPane/Scrollable combination.
You could try this approach using an ImageIcon within a JLabel:
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import javax.swing.*;
import javax.swing.event.*;
public class Test extends JFrame {
BufferedImage bi;
Graphics2D g_bi;
public Test() {
super("Scroll Test");
makeImage();
Container contentPane = getContentPane();
MyView view = new MyView(new ImageIcon(bi));
JScrollPane sp = new JScrollPane(view);
contentPane.add(sp);
setSize(200, 200);
setVisible(true);
private void makeImage() {
bi = new BufferedImage(320, 240, BufferedImage.TYPE_INT_ARGB);
g_bi = bi.createGraphics();
g_bi.setColor(Color.white);
g_bi.fillRect(0,0,320,240);
g_bi.setColor(Color.black);
g_bi.drawLine(0,0,320,240);
public static void main(String args[]) {
Test test = new Test();
class MyView extends JLabel {
ImageIcon icon;
public MyView(ImageIcon ii) {
super(ii);
icon = ii;
public void paintComponent(Graphics g) {
g.drawImage(icon.getImage(),0,0,this);
}Robert Templeton -
HELP WITH SPRY MENU BAR!!!
I there,
I'm a newbbie and I'm just learning DW with tutorials and try/error while I make my Cinematographer website. I've been fighting all aspects of DW that are relevant to my site, and I'm having serious trouble formatting the Spry Horizontal Menu Bar.
My last "f***up" has been the following: I already had a pretty decent Menu Bar, but the submenus where a little too low under the parent button. I was trying to lower the space between them items, and I've f***ed up. Not only I haven't been able to make it happen, but now the submenus show all the time, instead of being hidden. This is my MAIN thing here.
Now, if you feel liek helping all the way, I also need to place those SUBMENUs closer to the PARENT button. They seem to be in a "box" that I can't modify.
And if you REALLY want to help even more! I want to set a border to the buttons on the submenu, a thin black border without affecting the upper PARENT button.
How does it sound?? I would REALLY REALLY REALLY appreciate your help, I'm lost!!!
This is still not on-line, so I can't give the URL, but...
Here's the code:
<!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; charset=UTF-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
background-color: #333;
-->
</style>
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
</head>
<body>
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a href="#" class="MenuBarItemSubmenu">CONTACT</a>
<ul>
<li><a href="#">Contact</a></li>
<li><a href="#">Links</a></li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">OTHER WORK</a>
<ul>
<li><a href="#">Cine Institute</a></li>
<li><a href="#">Color Grading</a></li>
<li><a href="#">Percusons</a></li>
</ul>
</li>
<li><a class="MenuBarItemSubmenu" href="#">BIOFILMOGRAPHY</a>
<ul>
<li><a href="#">Resume</a></li>
<li><a href="#">Biofilmography</a></li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">PHOTOGRAPHY</a>
<ul>
<li><a href="#">Still Photo</a></li>
<li><a href="#">On Set</a></li>
</ul>
</li>
<li><a class="MenuBarItemSubmenu" href="#">CLIPS VIDEO</a>
<ul>
<li><a href="#">Music video</a></li>
<li><a href="#">Comercial</a></li>
<li class="MenuBarItemSubmenu"><a href="#">Narrativosss</a></li>
</ul>
</li>
<p> </p>
</ul>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>
THANKS VERY MUCH FOR READING!!!!
HermesHermes, the most useful thing for us to see will be the SpryMenuBarHorizontal.css file. The answers will be in your code.
Short of that, if you create a new site and a new page with an unaltered version of the menubar css stylesheet, compare that stylesheet with the one you have edited on your own page. Working carefully from top to bottom and looking at the differences, you might be able to pinpoint the problems. As you will see, the stylesheet is carefully commented, and a careful reading will reveal much to you about how the styles are applied.
One reason submenus might show all the time is if you have altered the style rule that places the submenus at a position of left: -1000em; That is a technique for 'hiding' the submenus way off to the left of the viewport until the Javascript calls them back on when you hover over the main menus. If you have altered any part of that rule, look at it carefully and replace your edits with original code.
Submenus are actually list items in unordered lists. If you can position the top of the unordered list higher, you will shift those submenus higher.
In order to style submenus but not the main menu items, you will style rules whose selectors begin like this:
ul.SpryMenuBarHorizontal ul
That means, the unordered list that is inside the unordered list whose class is "SpryMenuBarHorizontal".
To put rules around submenu items, style the borders of
ul.SpryMenuBarHorizontal ul li
Beth -
Help with scrolling photo gallery
I'm using the code below to for a scrolling photo gallery. I got this from another forum on Adobe. My problem is that I can't get my images to upload. I uploaded this for an image but it's not working:
<img src="images/baca_poster_small.jpg" data-cycle-title="image1">
Can someone please help me with getting my pictures to work in this?
Thanks!
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>HTML5 document with Cycle2</title>
<!--Latest jQuery Core Library-->
<script src="http://code.jquery.com/jquery-latest.min.js">
</script>
<!--Cycle2 Plugin Script-->
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery.cycle2/20130409/jquery.cycle2.min.js"></script>
<style>
.cycle-slideshow, .cycle-slideshow * {
-webkit-box-sizing:border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
margin:0 auto;
width:45%; /**adjust width as required**/
.cycle-slideshow img {width: 100%;}
</style>
</head>
<body>
<h1><a href="http://www.malsup.com/jquery/cycle2/">jQuery Cycle 2</a> Responsive Slideshow</h1>
<!--begin slideshow-->
<div class="cycle-slideshow"
data-cycle-pause-on-hover="true"
data-cycle-speed="700"
>
<!--your images go here-->
<img src="http://malsup.github.com/images/beach1.jpg" data-cycle-title="beach1">
<img src="http://malsup.github.com/images/beach2.jpg" data-cycle-title="beach2">
<img src="http://malsup.github.com/images/beach3.jpg" data-cycle-title="beach3">
<img src="http://malsup.github.com/images/beach4.jpg" data-cycle-title="beach4">
<img src="http://malsup.github.com/images/beach9.jpg" data-cycle-title="beach9">
<!--end slideshow-->
</div>
</body>
</html>Is this supposed to be a WordPress site? None of these images are found on the server. Those folders don't exist either.
<img class="first" src="mosspictures/DSCN0038.JPG" alt="">
<img src="mosspictures/DSCN0040.JPG" alt="">
<img src="wordpress/wp-content/themes/MarcMossTheme/image-3.jpg" alt="">
<img src="wordpress/wp-content/themes/MarcMossTheme/image-4.jpg" alt="">
<img src="wordpress/wp-content/themes/MarcMossTheme/image-5.jpg" alt="">
<img src="wordpress/wp-content/themes/MarcMossTheme/image-6.jpg" alt="">
<img src="wordpress/wp-content/themes/MarcMossTheme/image-1.jpg" alt="">
<img src="wordpress/wp-content/themes/MarcMossTheme/image-2.jpg" alt="">
<img src="wordpress/wp-content/themes/MarcMossTheme/image-3.jpg" alt="">
<img src="wordpress/wp-content/themes/MarcMossTheme/image-4.jpg" alt="">
Nancy O. -
I want to create my main menu myself and not use the one given on the top tool bar. It seems impossible to delete it, but I am creating my own menu bar with hyperlinks to go vertically down the page instead of the top scroll bar that is provided. How do I delete this menu bar?
Thanks,
Rachel -
Hi all,
Thank you in advance for any help.
I'm a bit of a beginner when it comes to coding but I'm trying to come up with a drop down menu bar very simliar to the one on this website:
www.fatmedia.co.uk
I've used inspect element to view the CSS and also viewed the source but i'm a bit confused by the code.
I just need to general layout code so i can add to it and customise etc.
Many thanks!
VikkiHi vikki1987,
Check out the Responsive Horizontal Drop Down Menu on this page. Not exactly the same thing but it should get you started.
http://designscrazed.net/css3-jquery-dropdown-menus/
Thanks,
Preran
Maybe you are looking for
-
Hi, We have an module we have developed using the SDK. The module displays some standard SAP information, namely: AR Invoices, AP Invoices, Business Partner name and payment terms I have one user who cannot access this screen, she gets a mess: CTN-
-
Fireworks doesn't open in yosemite
Hello, Im a member of CC and after installing Yosemite FW doesn`t open anymore. It shows the start splash page and keeps loading for ever and only shows the tools panel without any tool. Is there any incompability with Yosemite or Java ??? Fireworks
-
Hi All, SAP AII 4.0 is currently in Ramp-Up. If you have access to SAP Service Marketplace, you can obtain detailed information on AII 4.0 technical landscape, supported functions and features under the following links - SAP Library (Online-Help) for
-
Is It Possible to Change The Default Browser to Open Links in Reader?
Hi, Does anybody know if it's possible to change the browser that opens links in Adobe Reader? Currently, as I click on a link Internet Explorer starts up by default. Can I change it to another browser? Thanks
-
Presently using PSE 9 on a Mac. There are limitations for Mac users. As I understand it slideshow is still not available for Mac users. Are the share functions still limited? Does the time stamp changes still exist for Mac users (really makes the org