Java script menu flows below swf in IE
Hello all
I've added a java script bottom slide out info bar to my site. Using WMODE to transparent and both opaque on the swf. That worked for chrome, firefox, safari, but not IE
I'n IE the menu opens down as aposed to up and the button is in the wrong placement.
http://www.couvrette-photography.on.ca/ottawa_wedding_photographer/
any ideas?
Server error. Can't see your page.
Older Spry code pre-dates IE9. Also, it may interest you to know that Adobe has disontinued working with the Spry framework.
http://blogs.adobe.com/dreamweaver/2012/08/update-on-adobe-spry-framework-availability.htm l
Now might be a good opportunity for you to switch to a better menu system.
jQuery Superfish
http://users.tpg.com.au/j_birch/plugins/superfish/
jQuery Mega Menus http://www.javascriptkit.com/script/script2/jkmegamenu.shtml
CSS3 Dropdown Menus
http://www.red-team-design.com/css3-dropdown-menu
10 Responsive Menus
http://speckyboy.com/2012/08/29/10-responsive-navigation-solutions-and-tutorials/
Pop-Menu Magic2 by PVII (DW extension purchase)
http://www.projectseven.com/products/menusystems/pmm2/index.htm
Nancy O.
Similar Messages
-
Can anyone here help me with a Java Script Menu? It is a Vertical Drop Down
Many thanksTry this:
http://jsfiddle.net/NancyO/zN7fU/
Reponsive Menu for Touch Screen Devices:
http://www.meanthemes.com/plugins/meanmenu/
Nancy O. -
Hi,
I m working with Acrobat X. I don't know how to prepare java scripts for the below desired functions. Hoever i want to import some java scripts through Acrobat X "Action Wizard" for batch processing. If you can share these scripts, pls. provide ..
1) Java script for setting bookmartks as "Inherit Zoom"
2) Java script for initial page view "Bookmarks Panel and Page" only when book marks present in the document.
3) Java script for enabeling the PDF files for Fast web view as "Yes"
With Regards,
B..Hi Johnson,
Thanks for update. Well, i have seen some off the self plug ins or softwares available for the batch processing of PDF files for the said functions. However there may be another way (other than Java scripting) for completing the task.
Any idea......
Regards,
Bhaumik -
Unable to set Answers from Java Script
Hi,
After user selects the answer for a particular question, i am able to get the selected answer using below Java script.
var cp = document.Captivate;
alert(cp.cpEIGetValue("m_VarHandle.cpQuizInfoAnswerChoice"));
Based on some user info, i want to set the default answer using below Java Script. But below statement does not make the answer selection on the question slide.
var cp = document.Captivate;
cp.cpEISetValue("m_VarHandle.cpQuizInfoAnswerChoice","A");
Is there a way we can set answer for a question dynamically using onEnter Action?
Thanks,
KrishnaYou first have to instantiate your class:
DECLARE
obj ORA_JAVA.JOBJECT;
BEGIN
obj:=CLASSFORMS.new;
MESSAGE(CLASSFORMS.SALUDO(obj));
MESSAGE(' ');
END; -
How we can handle the below doubt in Java Script!!
Hi All,
I need to handle the below scenerio in javascript, i am very poor in scripting langauage could any help me out.
Below are the three where we have specail character
words as
1. transfer (…)
2. Shell’s
3. Vitol – as
The above 3 are having some specail characters which we need to
replace as mentioned below
need to use a Function/Method in some scripting language like Java
script to replace the special character with a predefined sequence eg:
single quote with “a1b1” before inserting the data in to the data base
and then while retrieving the record from the database replace “a1b1”
with single quote.
Note#:It is a text area where user can either enter or copy and paste
the content.
Thanks,
Anoo..Hi Anoo,
always remember to put your apex and database versions, it makes it easier to help.
You mentioned stripping out special characters and then putting them back for display. Is there a particular reason why?
If you're having difficulty querying the 'special' characters from SQL, you can create a view to handle that complexity.
The examples you gave don't contain any characters you can't query on. Maybe I'm missing something.
Kofi -
Can we integrate .swf file in java script ?
Hello Friends,
We implemented one concept in Flex and now would like to integrate with JavaScript. Earlier we integrated an Applet code but now, we developed the concept in Flex, however, I am unable to integrate the concept in java script.
Can anyone help me out with the procedure to integrate flex swf file in java script ?
Here is my earlier java script code :
var file=gup('query');
//document.write(file);
var prevFile=gup('prevFileName');
//document.write(prevFile);
document.write("<table align=\"center\"><tr><td><applet code=\"MyApplet.class\" archive=\"Visual.jar\" width=1000 height=500>");
document.write("</applet></td></tr></table>");
function gup( name )
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if( results == null )
return "";
else
return results[1];
Thanks in advance.What version of FlashPro are you using? If you want a self contained app that doesn't load external resources, publish an AIR app, which will work on Windows or OSX. I'm using OSX so I can't really help with .exe projector files, but it looks like the latest version of FlashPro no longer outputs projector files—I think everything is AIR now.
If you really want to go the projector route, I'm guessing Jeffrey Smith's suggestion of finding an older version of Flash Player would be simpler.
So for AIR, set your Publishing target to AIR for Desktop. Then under File>AIR settings:
Output as: Application with runtime embedded
Include files: Add all of your resources—the swf ID generated and it's resource folder
In the Signature tab click New to create a self-signing Certificate (if you were developing commercial software you would need a third party certificate). You can save the certificate anywhere.
When you publish you should find an AIR application file (.app) file in the directory with your .fla -
Hello,
As I know, we can use Java script to create client side menu. So user can browser through the menu tree to select the page they want.
My question is, Can we add more functionnality to this menu tree, so the menu can be anything but URL? ( For example, user browser the menu tree, click a link(or a button?) and call some function(which also writon in Java script) on the client side to perform some action other than call a linked page)
Thanks
Hui luHi,
You can try like this:
//in the <head> section write:
<script language="javascript">
function callFunc(){
//some code of yours
</script>
//On the menu item write this code:
<a href = 'javascript:callFunc();'>
Hope this will serve.
atanu -
Dear sir,
I am regular computer user and firefox is my default web browser. But it is seen that my web browser is not having the option of enable java scripts as I am learning web page designing. Could you please tell me how to add this option in my web browser on mozila as I am interested to work mozila all the time. I can add this by using internet but that is not always easy and also not sure when this option is enable or disable. Please guide me resolving my problem.
Regards,
Mohammad HossainYou can no longer do that via the user interface, but you need to check the related pref on the <b>about:config</b> page.
The <b>javascript.enabled</b> pref should be true on the <b>about:config</b> page to enable JavaScript.
You can open the <b>about:config</b> page via the location/address bar.
You can accept the warning and click "I'll be careful" to continue.
*http://kb.mozillazine.org/about:config
See also:
*QuickJava: https://addons.mozilla.org/firefox/addon/quickjava/ -
Any one know how to delete unresponsive java scripts in menu bar
I have unresponsive java scripts that i can not force quit. i went to finder and deleted it from the source i believe but the script is still unresponsive please help
If you want to just add an image to a JPanel, create a JLabel and add the image to that, then add the JLabel to the JPanel. If you want it to be the background of the JPanel, check this out:
http://manning.com/sbe/files/uts2/Chapter15html/Chapter15.htm
15.2 is where you'll find your answer along with sample code. The whole book is useful, take a look through it if you're interested. -
Error message in java script using IE6
I get the following error message on a web page java script with Internet Explorer 6 "C:\WINNT\Desktop\Error Report.htm."
The java script works fine with IE 5, but not with IE6. Any ideas why or how to fix?
Thank you,
AliciaThere are three scripts, here they are:
1. Scripts.js
NS4 = (document.layers);
IE4 = (document.all);
ver4 = (NS4 || IE4);
IE5 = (IE4 && navigator.appVersion.indexOf("5.")!=-1);
isMac = (navigator.appVersion.indexOf("Mac") != -1);
isMenu = (NS4 || (IE4 && !isMac) || (IE5 && isMac));
function popUp(){return};
function popDown(){return};
if (!ver4) event = null;
if (isMenu) {
menuVersion = 3;
menuWidth = 120;
childOverlap = 5;
childOffset = 0;
perCentOver = null;
secondsVisible = .2;
fntCol = "#ffffff";
fntSiz = "11";
fntBold = false;
fntItal = false;
fntFam = "times new roman, times, serif";
backCol = "#303886";
overCol = "#91B3EE";
overFnt = "#000000";
borWid = 0;
borCol = "#ffffff";
borSty = "solid";
itemPad = 5;
imgSrc = "";
imgSiz = 0;
separator = 1;
separatorCol = "#ffffff";
isFrames = false; // <-- IMPORTANT for full window
navFrLoc = "left"; // <-- display. see below
keepHilite = true;
clickStart = false;
clickKill = false;
function swapimg( imgid, newimg ) {
imgid.src = newimg.src;
if( document.images ) {
about_on = new Image();
about_on.src = "./images/about_on.jpg";
about_off = new Image();
about_off.src = "./images/about_off.jpg";
practice_on = new Image();
practice_on.src = "./images/practice_on.jpg";
practice_off = new Image();
practice_off.src = "./images/practice_off.jpg";
lawyer_on = new Image();
lawyer_on.src = "./images/lawyer_on.jpg";
lawyer_off = new Image();
lawyer_off.src = "./images/lawyer_off.jpg";
career_on = new Image();
career_on.src = "./images/career_on.jpg";
career_off = new Image();
career_off.src = "./images/career_off.jpg";
resources_on = new Image();
resources_on.src = "./images/resources_on.jpg";
resources_off = new Image();
resources_off.src = "./images/resources_off.jpg";
contact_on = new Image();
contact_on.src = "./images/contact_on.jpg";
contact_off = new Image();
contact_off.src = "./images/contact_off.jpg";
2. hierArrays.js
arMenu1 = new Array(
130,
199,247,
"Overview","./about/overview.html",0,
"Pro Bono Activities","./about/probono.html",0
arMenu2 = new Array(
190,
199,287,
"Commercial Finance","./practice/finance.html",0,
"Corporate and Securities","./practice/corporate.html",0,
"Insolvency","./practice/bankruptcy.html",0,
"Land Use, Local Government and Environmental Law","./practice/land.html",0,
"Litigation","./practice/litigation.html",0,
"Real Estate","./practice/realestate.html",0,
"Tax and Estate Planning","./practice/tax.html",0
arMenu3 = new Array(
120,
199,327,
"Partners","./lawyers/partners/index.html",0,
"Associates","./lawyers/associates/index.html",0,
"Of Counsel","./lawyers/counsel/index.html",0,
"By Practice Area","./lawyers/practice.html",0,
"Full Listing","./lawyers/full.html",0
arMenu4 = new Array(
135,
199,447,
"Contact Information","./contact/info.html",0,
"Driving Directions","./contact/directions.html",0
arMenu5 = new Array(
180,
199,365,
"Summer Associate Program","./career/sumassoc.html",0
3. hierMenus.js
/*hierMenus.js
* by Peter Belesis. v3.10.2 000720
* Copyright (c) 2000 internet.com Corp. All Rights Reserved.
* Originally published and documented at http://www.dhtmlab.com/
* You may use this code on a public Web site only if this entire
* copyright notice appears unchanged and you publicly display
* on the Web page a link to http://www.dhtmlab.com/.
* Contact [email protected] for all other uses.
loader = (isFrames) ? (NS4) ? parent : parent.document.body : window;
loader.onload = startIt;
if(NS4){
origWidth = loader.innerWidth;
origHeight = loader.innerHeight;
loader.onresize = reDo;
isLoaded = false;
NSresized = false;
if (!window.menuVersion) {
clickKill = keepHilite = clickStart = false;
if (!window.imgHspace) imgHspace=0;
isWin = (navigator.appVersion.indexOf("Win") != -1)
mSecsVis = secondsVisible*1000;
isRight = (window.navFrLoc && navFrLoc == "right");
fullImgSize = (imgSiz+(imgHspace*2));
if(!IE5) {
imgSuf = (isRight) ? ">" : " ALIGN=RIGHT>";
imgStr = "<IMG SRC='" + imgSrc + "' WIDTH=" + imgSiz + " HEIGHT=" + imgSiz +" VSPACE=2 HSPACE="+ imgHspace +" BORDER=0"+ imgSuf;
if(IE4) imgStr = "<SPAN STYLE='height:100%;width:"+ (fullImgSize-(isRight?3:0)) +";float:"+ (isRight?"left":"right") +";overflow:hidden'>"+ imgStr +"</SPAN>";
areCreated = false;
menuLoc = null;
function initVars() {
if(areCreated) {
for(i=1; i<topCount; i++) {
cur = eval("elMenu"+i);
clearTimeout(cur.hideTimer);
cur.hideTimer=null;
clearTimeout(allTimer);
topCount = 1;
areCreated = false;
beingCreated = false;
isOverMenu = false;
currentMenu = null;
allTimer = null;
initVars();
function NSunloaded(){
isLoaded = false;
function NSloaded(e){
if (e.target.name == mainFrName) {
initVars();
startIt();
function IEunloaded() {
initVars();
isLoaded = false;
setTimeout("keepTrack()",50)
function keepTrack() {
if (menuLoc.document.readyState == "complete") {
initVars();
startIt();
else {
setTimeout("keepTrack()",50);
function startIt() {
isLoaded = true;
if (isFrames) {
menuLoc = eval("parent.frames." + mainFrName);
if (NS4) {
loader.captureEvents(Event.LOAD);
loader.onload = NSloaded;
menuLoc.onunload = NSunloaded;
if (IE4) {
menuLoc.document.body.onunload = IEunloaded;
else {
menuLoc = window;
menuLoc.nav = nav = window;
if (clickKill) {
if (NS4) menuLoc.document.captureEvents(Event.MOUSEDOWN);
menuLoc.document.onmousedown = clicked;
makeTop();
function makeTop(){
beingCreated = true;
if(IE4) {
topZ = 0;
for (z=0;z<menuLoc.document.all.length;z++){
oldEl = menuLoc.document.all(z);
topZ = Math.max(oldEl.style.zIndex,topZ)
while(eval("window.arMenu" + topCount)) {
(NS4) ? makeMenuNS(false,topCount) : makeMenuIE(false,topCount);
topCount++
status = (topCount-1) + " Hierarchical Menu Trees Created"
areCreated = true;
beingCreated = false;
// the following line was added by Rachel Gockley ([email protected]) on 27 July 2000
status = "";
function makeMenuNS(isChild,menuCount,parMenu,parItem) {
tempArray = eval("arMenu" + menuCount);
if (!isChild) {
tempWidth = tempArray[0] ? tempArray[0] : menuWidth;
menu = makeElement("elMenu" + menuCount,tempWidth,null,null);
else {
menu = makeElement("elMenu" + menuCount,null,parMenu,null);
menu.array = tempArray;
menu.setMenuTree = setMenuTree;
menu.setMenuTree(isChild,parMenu);
while (menu.itemCount < menu.maxItems) {
menu.itemCount++;
status = "Creating Hierarchical Menus: " + menuCount + " / " + menu.itemCount;
prevItem = (menu.itemCount > 1) ? menu.item : null;
itemName = "item" + menuCount + "_" + menu.itemCount;
menu.item = makeElement(itemName,null,null,menu);
menu.item.prevItem = prevItem;
menu.item.setup = itemSetup;
menu.item.setup(menu.itemCount,menu.array);
if (menu.item.hasMore) {
makeMenuNS(true,menuCount + "_" + menu.itemCount,menu,menu.item);
menu = menu.parentMenu;
menu.lastItem = menu.item;
menu.setup(isChild,parMenu,parItem);
function findTree(men){
foundTree = false;
for(i=11;i<men.array.length;i+=3){
if(men.array) {
foundTree = true;
break;
return foundTree;
function setMenuTree(isChild,parMenu) {
if (!isChild) {
this.menuWidth = this.array[0] ? this.array[0] : menuWidth;
this.menuLeft = this.array[1];
this.menuTop = this.array[2];
this.menuFontColor = this.array[3] ? this.array[3] : fntCol;
this.menuFontOver = this.array[4] ? this.array[4] : overFnt;
this.menuBGColor = this.array[5] ? this.array[5] : backCol;
this.menuBGOver = this.array[6] ? this.array[6] : overCol;
this.menuBorCol = this.array[7] ? this.array[7] : borCol;
this.menuSeparatorCol = this.array[8] ? this.array[8] : separatorCol;
this.treeParent = this;
this.startChild = this;
this.isTree = findTree(this);
else {
this.menuWidth = parMenu.menuWidth;
this.menuLeft = parMenu.menuLeft;
this.menuTop = parMenu.menuTop;
this.menuFontColor = parMenu.menuFontColor;
this.menuFontOver = parMenu.menuFontOver;
this.menuBGColor = parMenu.menuBGColor;
this.menuBGOver = parMenu.menuBGOver;
this.menuBorCol = parMenu.menuBorCol;
this.menuSeparatorCol = parMenu.menuSeparatorCol;
this.treeParent = parMenu.treeParent;
this.isTree = parMenu.isTree;
this.maxItems = (isChild) ? this.array.length/3 : (this.array.length-9)/3;
this.hasParent = isChild;
this.setup = menuSetup;
this.itemCount = 0;
function makeMenuIE(isChild,menuCount,parMenu) {
menu = makeElement("elMenu" + menuCount);
menu.array = eval("arMenu" + menuCount);
menu.setMenuTree = setMenuTree;
menu.setMenuTree(isChild,parMenu);
menu.itemStr = "";
while (menu.itemCount < menu.maxItems) {
menu.itemCount++;
status = "Creating Hierarchical Menus: " + menuCount + " / " + menu.itemCount;
itemName = "item" + menuCount + "_" + menu.itemCount;
arrayPointer = (isChild) ? (menu.itemCount-1)*3 :((menu.itemCount-1)*3)+9;
dispText = menu.array[arrayPointer];
hasMore = menu.array[arrayPointer + 2];
if(IE5) {
newSpan = menuLoc.document.createElement("SPAN");
with(newSpan) {
id = itemName;
with(style) {
width = (menu.menuWidth-(borWid*2));
fontSize = fntSiz + "pt";
fontWeight = (fntBold) ? "bold" : "normal";
fontStyle = (fntItal) ? "italic" : "normal";
fontFamily = fntFam;
padding = itemPad;
borderBottomWidth = separator + "px";
borderBottomStyle = "solid";
innerHTML = dispText;
newBreak = menuLoc.document.createElement("BR");
menu.appendChild(newSpan);
menu.appendChild(newBreak);
if(hasMore) {
//3.10.2 added next 2 statements:
if (isRight) newSpan.style.paddingLeft = itemPad+fullImgSize;
else newSpan.style.paddingRight = itemPad+fullImgSize;
newImage = menuLoc.document.createElement("IMAGE");
with(newImage){
src = imgSrc;
with(style) {
position = "absolute";
width = imgSiz;
height = imgSiz;
left = (isRight) ? itemPad : (newSpan.style.pixelWidth - itemPad - imgSiz);
top = newSpan.offsetTop + itemPad + (isMac ? 0 : 2);
newSpan.appendChild(newImage);
else {
htmStr = (hasMore) ? imgStr + dispText : dispText;
menu.itemStr += "<SPAN ID=" + itemName + " STYLE=\"width:" + (menu.menuWidth-(borWid*2)) + "\">" + htmStr + "</SPAN><BR>";
if (hasMore) {
makeMenuIE(true,menuCount + "_" + menu.itemCount,menu);
menu = menu.parentMenu;
if(!IE5) menu.innerHTML = menu.itemStr;
itemColl = menu.children.tags("SPAN");
for (i=0; i<itemColl.length; i++) {
it = itemColl(i);
it.setup = itemSetup;
it.setup(i+1,menu.array);
menu.lastItem = itemColl(itemColl.length-1);
menu.setup(isChild,parMenu);
function makeElement(whichEl,whichWidth,whichParent,whichContainer) {
if (NS4) {
if (whichWidth) {
elWidth = whichWidth;
else {
elWidth = (whichContainer) ? whichContainer.menuWidth : whichParent.menuWidth;
if (whichContainer) elWidth = elWidth-(borWid*2)-(itemPad*2);
if (!whichContainer) whichContainer = menuLoc;
eval(whichEl + "= new Layer(elWidth,whichContainer)");
else {
if (IE5) {
newDiv = menuLoc.document.createElement("DIV");
newDiv.style.position = "absolute";
newDiv.id = whichEl;
menuLoc.document.body.appendChild(newDiv);
else {
elStr = "<DIV ID=" + whichEl + " STYLE='position:absolute'></DIV>";
menuLoc.document.body.insertAdjacentHTML("BeforeEnd",elStr);
if (isFrames) eval(whichEl + "= menuLoc." + whichEl);
return eval(whichEl);
function itemSetup(whichItem,whichArray) {
this.onmouseover = itemOver;
this.onmouseout = itemOut;
this.container = (NS4) ? this.parentLayer : this.parentElement;
arrayPointer = (this.container.hasParent) ? (whichItem-1)*3 : ((whichItem-1)*3)+9;
this.dispText = whichArray[arrayPointer];
this.linkText = whichArray[arrayPointer + 1];
this.hasMore = whichArray[arrayPointer + 2];
if (IE4 && this.hasMore) {
this.child = eval("elMenu" + this.id.substr(4));
this.child.parentMenu = this.container;
this.child.parentItem = this;
if (this.linkText) {
if (NS4) {
this.captureEvents(Event.MOUSEUP)
this.onmouseup = linkIt;
else {
this.onclick = linkIt;
this.style.cursor = "hand";
if (NS4) {
htmStr = this.dispText;
if (fntBold) htmStr = htmStr.bold();
if (fntItal) htmStr = htmStr.italics();
htmStr = "<FONT FACE='" + fntFam + "' POINT-SIZE=" + fntSiz + ">" + htmStr+ "</FONT>";
this.htmStrOver = htmStr.fontcolor(this.container.menuFontOver);
this.htmStr = htmStr.fontcolor(this.container.menuFontColor);
if(this.hasMore) {
this.document.write(imgStr);
this.document.close();
this.visibility = "inherit";
this.bgColor = this.container.menuBGColor;
if (whichItem == 1) {
this.top = borWid + itemPad;
else {
this.top = this.prevItem.top + this.prevItem.clip.height + separator;
this.left = borWid + itemPad;
this.clip.top = this.clip.left = -itemPad;
this.clip.right = this.container.menuWidth-(borWid*2)-itemPad;
maxTxtWidth = this.container.menuWidth-(borWid*2)-(itemPad*2);
if (this.container.isTree) maxTxtWidth-=(fullImgSize);
this.txtLyrOff = new Layer(maxTxtWidth,this);
if (isRight && this.container.isTree) this.txtLyrOff.left = fullImgSize;
this.txtLyrOff.document.write(this.htmStr);
this.txtLyrOff.document.close();
this.txtLyrOff.visibility = "inherit";
this.clip.bottom = this.txtLyrOff.document.height+itemPad;
this.txtLyrOn = new Layer(maxTxtWidth,this);
if (isRight && this.container.isTree) this.txtLyrOn.left = fullImgSize;
this.txtLyrOn.document.write(this.htmStrOver);
this.txtLyrOn.document.close();
this.txtLyrOn.visibility = "hide";
this.dummyLyr = new Layer(100,this);
this.dummyLyr.left = this.dummyLyr.top = -itemPad;
this.dummyLyr.clip.width = this.clip.width;
this.dummyLyr.clip.height = this.clip.height;
this.dummyLyr.visibility = "inherit";
else {
with (this.style) {
if(!IE5) {
fontSize = fntSiz + "pt";
fontWeight = (fntBold) ? "bold" : "normal";
fontStyle = (fntItal) ? "italic" : "normal";
fontFamily = fntFam;
padding = itemPad;
borderBottomWidth = separator + "px";
borderBottomStyle = "solid";
//3.10.2 modified next statement to one following
// if (this.container.isTree && (IE5 || (!IE5 && !this.hasMore))) {
if (this.container.isTree && !this.hasMore) {
if (isRight) paddingLeft = itemPad+fullImgSize;
else paddingRight = itemPad+fullImgSize;
color = this.container.menuFontColor;
borderBottomColor = this.container.menuSeparatorCol;
backgroundColor = this.container.menuBGColor;
function menuSetup(hasParent,openCont,openItem) {
this.onmouseover = menuOver;
this.onmouseout = menuOut;
this.showIt = showIt;
this.keepInWindow = keepInWindow;
this.hideTree = hideTree
this.hideParents = hideParents;
this.hideChildren = hideChildren;
this.hideTop = hideTop;
this.hasChildVisible = false;
this.isOn = false;
this.hideTimer = null;
this.childOverlap = (perCentOver != null) ? ((perCentOver/100) * this.menuWidth) : childOverlap;
this.currentItem = null;
this.hideSelf = hideSelf;
if (hasParent) {
this.hasParent = true;
this.parentMenu = openCont;
if (NS4) {
this.parentItem = openItem;
this.parentItem.child = this;
else {
this.hasParent = false;
if (NS4) {
this.bgColor = this.menuBorCol;
this.fullHeight = this.lastItem.top + this.lastItem.clip.bottom + borWid;
this.clip.right = this.menuWidth;
this.clip.bottom = this.fullHeight;
else {
with (this.style) {
width = this.menuWidth;
borderWidth = borWid;
borderColor = this.menuBorCol;
borderStyle = borSty;
zIndex = topZ;
//3.10.2 added next statement
overflow = "hidden";
this.lastItem.style.border="";
this.fullHeight = this.offsetHeight;
if(isMac)this.style.pixelHeight = this.fullHeight;
this.fullHeight = this.scrollHeight;
this.showIt(false);
this.onselectstart = cancelSelect;
this.moveTo = moveTo;
this.moveTo(0,0);
function popUp(menuName,e){
if (NS4 && NSresized) startIt();
if (!isLoaded) return;
linkEl = (NS4) ? e.target : event.srcElement;
if (clickStart) linkEl.onclick = popMenu;
if (!beingCreated && !areCreated) startIt();
linkEl.menuName = menuName;
if (!clickStart) popMenu(e);
function popMenu(e){
if (!isLoaded || !areCreated) return true;
eType = (NS4) ? e.type : event.type;
if (clickStart && eType != "click") return true;
hideAll();
linkEl = (NS4) ? e.target : event.srcElement;
currentMenu = eval(linkEl.menuName);
currentMenu.hasParent = false;
currentMenu.treeParent.startChild = currentMenu;
if (IE4) menuLocBod = menuLoc.document.body;
if (!isFrames) {
xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? e.pageX : (event.clientX + menuLocBod.scrollLeft);
yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? e.pageY : (event.clientY + menuLocBod.scrollTop);
else {
switch (navFrLoc) {
case "left":
xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? menuLoc.pageXOffset : menuLocBod.scrollLeft;
yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? (e.pageY-pageYOffset)+menuLoc.pageYOffset : event.clientY + menuLocBod.scrollTop;
break;
case "top":
xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? (e.pageX-pageXOffset)+menuLoc.pageXOffset : event.clientX + menuLocBod.scrollLeft;
yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? menuLoc.pageYOffset : menuLocBod.scrollTop;
break;
case "bottom":
xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? (e.pageX-pageXOffset)+menuLoc.pageXOffset : event.clientX + menuLocBod.scrollLeft;
yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? menuLoc.pageYOffset+menuLoc.innerHeight : menuLocBod.scrollTop + menuLocBod.clientHeight;
break;
case "right":
xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? menuLoc.pageXOffset+menuLoc.innerWidth : menuLocBod.scrollLeft+menuLocBod.clientWidth;
yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? (e.pageY-pageYOffset)+menuLoc.pageYOffset : event.clientY + menuLocBod.scrollTop;
break;
currentMenu.moveTo(xPos,yPos);
currentMenu.keepInWindow()
currentMenu.isOn = true;
currentMenu.showIt(true);
return false;
function menuOver(e) {
this.isOn = true;
isOverMenu = true;
currentMenu = this;
if (this.hideTimer) clearTimeout(this.hideTimer);
function menuOut() {
if (IE4) {
theEvent = menuLoc.event;
if (theEvent.srcElement.contains(theEvent.toElement)) return;
this.isOn = false;
isOverMenu = false;
menuLoc.status = "";
if (!clickKill) allTimer = setTimeout("currentMenu.hideTree()",10);
function itemOver(){
if (keepHilite) {
if (this.container.currentItem && this.container.currentItem != this) {
if (NS4) {
this.container.currentItem.bgColor = this.container.menuBGColor;
this.container.currentItem.txtLyrOff.visibility = "inherit";
this.container.currentItem.txtLyrOn.visibility = "hide";
else {
with (this.container.currentItem.style) {
backgroundColor = this.container.menuBGColor;
color = this.container.menuFontColor;
if (IE4) {
theEvent = menuLoc.event;
if (theEvent.srcElement.tagName == "IMG") return;
this.style.backgroundColor = this.container.menuBGOver;
this.style.color = this.container.menuFontOver;
else {
this.bgColor = this.container.menuBGOver;
this.txtLyrOff.visibility = "hide";
this.txtLyrOn.visibility = "inherit";
menuLoc.status = this.linkText;
this.container.currentItem = this;
if (this.container.hasChildVisible) {
this.container.hideChildren(this);
if (this.hasMore) {
horOffset = (isRight) ? (this.container.childOverlap - this.container.menuWidth) : (this.container.menuWidth - this.container.childOverlap);
if (NS4) {
this.childX = this.container.left + horOffset;
this.childY = (this.pageY+this.clip.top) + childOffset;
else {
this.childX = this.container.style.pixelLeft + horOffset;
this.childY = this.offsetTop + this.container.style.pixelTop + childOffset + borWid;
this.child.moveTo(this.childX,this.childY);
this.child.keepInWindow();
this.container.hasChildVisible = true;
this.container.visibleChild = this.child;
this.child.showIt(true);
function itemOut() {
if (IE4) {
theEvent = menuLoc.event;
if (theEvent.srcElement.contains(theEvent.toElement)
|| (theEvent.fromElement.tagName=="IMG" && theEvent.toElement.contains(theEvent.fromElement)))
return;
if (!keepHilite) {
this.style.backgroundColor = this.container.menuBGColor;
this.style.color = this.container.menuFontColor;
else {
if (!keepHilite) {
this.bgColor = this.container.menuBGColor;
this.txtLyrOff.visibility = "inherit";
this.txtLyrOn.visibility = "hide";
if (!isOverMenu && !clickKill) {
allTimer = setTimeout("currentMenu.hideTree()",10);
function moveTo(xPos,yPos) {
this.style.pixelLeft = xPos;
this.style.pixelTop = yPos;
function showIt(on) {
if (NS4) {
this.visibility = (on) ? "show" : "hide";
if (keepHilite && this.currentItem) {
this.currentItem.bgColor = this.menuBGColor;
this.currentItem.txtLyrOff.visibility = "inherit";
this.currentItem.txtLyrOn.visibility = "hide";
else {
this.style.visibility = (on) ? "visible" : "hidden";
if (keepHilite && this.currentItem) {
with (this.currentItem.style) {
backgroundColor = this.menuBGColor;
color = this.menuFontColor;
this.currentItem = null;
function keepInWindow() {
scrBars = 20;
botScrBar = (isFrames && navFrLoc=="bottom") ? (borWid*2) : scrBars;
rtScrBar = (isFrames && navFrLoc=="right") ? (borWid*2) : scrBars;
if (NS4) {
winRight = (menuLoc.pageXOffset + menuLoc.innerWidth) - rtScrBar;
rightPos = this.left + this.menuWidth;
if (rightPos > winRight) {
if (this.hasParent) {
parentLeft = this.parentMenu.left;
newLeft = ((parentLeft-this.menuWidth) + this.childOverlap);
this.left = newLeft;
else {
dif = rightPos - winRight;
this.left -= dif;
winBot = (menuLoc.pageYOffset + menuLoc.innerHeight) - botScrBar ;
botPos = this.top + this.fullHeight;
if (botPos > winBot) {
dif = botPos - winBot;
this.top -= dif;
winLeft = menuLoc.pageXOffset;
leftPos = this.left;
if (leftPos < winLeft) {
if (this.hasParent) {
parentLeft = this.parentMenu.left;
newLeft = ((parentLeft+this.menuWidth) - this.childOverlap);
this.left = newLeft;
else {
this.left = 5;
else {
winRight = (menuLoc.document.body.scrollLeft + menuLoc.document.body.clientWidth) - rtScrBar;
rightPos = this.style.pixelLeft + this.menuWidth;
if (rightPos > winRight) {
if (this.hasParent) {
parentLeft = this.parentMenu.style.pixelLeft;
newLeft = ((parentLeft - this.menuWidth) + this.childOverlap);
this.style.pixelLeft = newLeft;
else {
dif = rightPos - winRight;
this.style.pixelLeft -= dif;
winBot = (menuLoc.document.body.scrollTop + menuLoc.document.body.clientHeight) - botScrBar;
botPos = this.style.pixelTop + this.fullHeight;
if (botPos > winBot) {
dif = botPos - winBot;
this.style.pixelTop -= dif;
winLeft = menuLoc.document.body.scrollLeft;
leftPos = this.style.pixelLeft;
if (leftPos < winLeft) {
if (this.hasParent) {
parentLeft = this.parentMenu.style.pixelLeft;
newLeft = ((parentLeft+this.menuWidth) - this.childOverlap);
this.style.pixelLeft = newLeft;
else {
this.style.pixelLeft = 5;
function linkIt() {
if (this.linkText.indexOf("javascript:")!=-1) eval(this.linkText)
else menuLoc.location.href = this.linkText;
function popDown(menuName){
if (!isLoaded || !areCreated) return;
whichEl = eval(menuName);
whichEl.isOn = false;
if (!clickKill) whichEl.hideTop();
function hideAll() {
for(i=1; i<topCount; i++) {
temp = eval("elMenu" + i + ".startChild");
temp.isOn = false;
if (temp.hasChildVisible) temp.hideChildren();
temp.showIt(false);
function hideTree() {
allTimer = null;
if (isOverMenu) return;
if (this.hasChildVisible) {
this.hideChildren();
this.hideParents();
function hideTop() {
whichTop = this;
(clickKill) ? whichTop.hideSelf() : (this.hideTimer = setTimeout("if(whichTop.hideSelf)whichTop.hideSelf()",mSecsVis));
function hideSelf() {
this.hideTimer = null;
if (!this.isOn && !isOverMenu) {
this.showIt(false);
function hideParents() {
tempMenu = this;
while (tempMenu.hasParent) {
tempMenu.showIt(false);
tempMenu.parentMenu.isOn = false;
tempMenu = tempMenu.parentMenu;
tempMenu.hideTop();
function hideChildren(item) {
tempMenu = this.visibleChild;
while (tempMenu.hasChildVisible) {
tempMenu.visibleChild.showIt(false);
tempMenu.hasChildVisible = false;
tempMenu = tempMenu.visibleChild;
if (!this.isOn || !item.hasMore || this.visibleChild != this.child) {
this.visibleChild.showIt(false);
this.hasChildVisible = false;
function cancelSelect(){return false}
function reDo(){
if (loader.innerWidth==origWidth && loader.innerHeight==origHeight) return;
initVars();
NSresized=true;
menuLoc.location.reload();
function clicked() {
if (!isOverMenu && currentMenu!=null && !currentMenu.isOn) {
whichEl = currentMenu;
whichEl.hideTree();
window.onerror = handleErr;
function handleErr(){
arAccessErrors = ["permission","access"];
mess = arguments[0].toLowerCase();
found = false;
for (i=0;i<arAccessErrors.length;i++) {
errStr = arAccessErrors[i];
if (mess.indexOf(errStr)!=-1) found = true;
return found;
//end -
Hello,
I have a JSF component like this that has a pageSize attribute. It shows a grid with 5 elements.
<x:gridView id="#{tab}GridView" pageSize="5">
</f:gridView>Then I have a drop down with 5 menu items where the user can select how many elements they want to see visible on the grid. My question is, how do i use Java Script to to change the pageSize attribute above with what the user selected in the menu below? I have been looking at java script code and online docs for an hour and cant come up with anything that seems to work. Any help will be appriciated. Thank you!!!
<x:selectOneMenu id="myMenu" onclick="">
<f:selectItem id="perPage1" itemValue="1" itemLabel="1" />
<f:selectItem id="perPage2" itemValue="2" itemLabel="2" />
<f:selectItem id="perPage3" itemValue="3" itemLabel="3" />
<f:selectItem id="perPage4" itemValue="4" itemLabel="4" />
<f:selectItem id="perPage5" itemValue="5" itemLabel="5" />
</x:selectOneMenu>[...]how it was never designed to be used for
such large applications[...]All I can say is that if this is true, then it doesn't show. Yes, I know it (oak) was originally designed for embedded systems, but Java and Oak aren't identical.
My assembly teacher
always makes fun of Java, saying java gives you far
less control, it prevents you from making mistakes.
No control over unsigned/ signed values, pointers
etc. Yes. But broadly speaking that's the point. Java sacrifices control over such things. The return, however, is that programmers are able to be more productive because of the great swathes of problems that can no longer arise.
The mistake is in assuming that Java is the best tool for everything. It isn't, and in fact no language us. As it turns out, Java is just great for building enterprise systems. It has a few other strengths, some of which (applets for example) have been more important in its original uptake but are now relatively minor features.
You don't write an enterprise website in Intel assembly, and you don't write device drivers in Java.
Not saying its not good but its good for
smaller applications like cell phones and
mini-computers.I think you mean something different by mini-computers to what I mean...
Its portability is actually the main point in its favour for use in cell phones. If it weren't for that, I think C or C++ would probably have sole ownership of that space.
Now i'm not saying any thing against it just
confused on why a class like data-structures at my
University [...] would be taught using java when C would
probably be a lot better for Very Large ADTS.You and Joel Spolsky:
http://www.joelonsoftware.com/articles/ThePerilsofJavaSchools.html
I disagree, because I don't think it much matters what language you learn - experience trumps any particular initial language choice. If you're still using Java in 15 years I'll be fairly surprised. -
hello all scripters:
can any body help me to develope a script in javascript/apple script
i want search a paragraph style and a character style in indesign page with page num
i tried by this.. script.. any body give me this script in apple m not good in java script,,,,
var myDc =app.activeDocument;
var mySty = myDc.characterStyles.everyItem().name;
var myDia = app.dialogs.add({name:"Character Style Display Menu", canCancel:true});
with(myDia.dialogColumns.add()){
with(borderPanels.add()){
with(dialogColumns.add()){staticTexts.add({staticLabel:"Select Character Style: "});}
with(dialogColumns.add())
var SelSty = dropdowns.add({stringList:mySty, selectedIndex:0});}
var myRes = myDia.show();
if(myRes==true)
var myChoice = mySty[SelSty.selectedIndex];
myDia.destroy();
else
{ exit();}
app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
app.findTextPreferences.appliedCharacterStyle = myChoice.toString();
var myFind = app.findText(false).reverse();
for(var a=myFind.length-1; a>=0; a--){
var myString= myFind[a];
var myPg = myString.parentTextFrames[0].parent.name;}
app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
if(myCon==null)
{alert("not found");}Hi Vijay,
Please use the below JS code is as per your request.
var myDoc =app.activeDocument;
var myLW = 100;
var myStyleNames = myDoc.characterStyles.everyItem().name;
var myDialog = app.dialogs.add({name:"Character Style KT Page Numbers Create", canCancel:true});
with(myDialog.dialogColumns.add()){
with(borderPanels.add()){
with(dialogColumns.add()){staticTexts.add({staticLabel:"Choose the KT Character Style: ", minWidth:myLW});}
with(dialogColumns.add()){var myChooseStyle = dropdowns.add({stringList:myStyleNames, selectedIndex:0});}
var myResult = myDialog.show();
if(myResult == true){
var mySelStyle = myStyleNames[myChooseStyle.selectedIndex];
myDialog.destroy();
else{
myDialog.destroy();
app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
app.findTextPreferences.appliedCharacterStyle = mySelStyle.toString();
var mySearch = app.findText(false);
for(var a=mySearch.length-1; a>=0; a--){
var myText= mySearch[a];
var myPagenum = myText.parentTextFrames[0].parent.name;
var myContents = myText.contents;
app.selection[0].insertionPoints[-1].contents = String(myContents+"\t"+myPagenum);
app.selection[0].insertionPoints[-1].contents = "\r";
app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
thx
csm_phil -
I just upgaded to a new Windows 8 system and also upgraded from old Macromedia Dreamweaver 8 to CS6.
On my old system, when I inserted an image object / rollover image, the code that was written inserted BORDER="0".
That made it so when viewed in a browser, the image was not bordered with hyperlink blue/purple.
My new system does not put the Border="0" in the code and thus I get a border of the rollover image in hyperlink colors.
I've tried changing the CSS for links, etc. and it does not have any effect on rollovers.
How do I get the java script writer to add that after the image size in the source code the dialog box creates???
Your help is much appreciated!Thanks Ben,
Thanks for your help with the ‘LISTINGS’ page on my website (link below).
Setting up CCS for no border for tag “a img” (link images) got the effect I need without changing the other image types on the page that have their own formatting.
However, years ago, using a 6 inch thick dreamweaver book, I was able somehow to save a variable BORDER=”0” in some way that changed the Java Script to automatically insert that when using the top menu, to insert image object / rollover image. Do know of a way to change the behavior attribute for rollover (image swap / image restore)???
I know there’s a way. Do you know how to do it?
GORDON HUNT
REALTOR
CHAPMAN RICHARDS & ASSOC.
801-486-7075
<http://www.gordonhuntrealestate.com/> GordonHuntRealEstate.com
P.S. The Finest Compliment I Can Receive Is Your Referral! -
Can we use Java Script in SAP BusinessObjects Web Intelligence 4.1?
Can we use Java Script or any other Script in BI 4.1 Web Intelligence? If possible please do let me know the method/process
Hi Kranthi,
You have option to read a cell content as html. else you will have to go for SDK. I think you will get better suggestions, if you can explain your requirement in a little detailed manner.
refer below links for more details about SDK.
http://bukhantsov.org/2013/04/how-to-create-a-webi-document-using-java-report-engine-sdk/
Regards,
Nikhil Joy -
I'm note a firefox geek, but ever since my friend told me to install NoScript I can not access my msn and hotmail page. It tells me that Java Script is required, what ever that is. What do I do next. Do I uninstall the No Script. Thanks Ed edit
DetailsYou are on Windows 2000, you do not have a "Firefox" button, and should consider yourself to be fortunate in that you still have menus and don't have to do anything to get the menus back instead of the "Firefox" button. (The same applies to Windows XP users).
Use the "File" menu to get to Import. You are not on Windows 7 or Vista, and don't have to put up with the nonsense added for Aero.
If you want the "Firefox" button you can get it with View -> toolbars -> (uncheck) Menu Bar. The menu bar and the "Firefox" button were supposed to be mutually exclusive (which is impossible in some cases without being incompatible).
Once you are using the "Firefox" button ...
Use the "Alt" key to view the menu bar (temporarily) containing File, Edit, View, History, Bookmarks, Tools, and Help. On Windows 7 and Vista, the menu bar was hidden by default in Firefox 4 and above. These menu items are more or less available under the "Firefox" button which has the most used of the built-in Firefox menu items available in a different format.
To get back to having menus again. "Firefox" button -> Options (second column) -> (check) Menu Bar
You can make '''Firefox 7.0.1''' look like Firefox 3.6.*, see numbered '''items 1-10''' in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 thru 8.0, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
* http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface
Maybe you are looking for
-
Hi I have built a website using iweb 08, its only a start...( http://www.wildlifeinpix.com ) I have not uploaded many photo's yet but watch this space!! I have looked at other photography sites and I quite like some of the photo viewers that I see us
-
I have a jsp page with Master-detail tables. My current create new row button has to set current on one detail row to be able to create a new row. I have some master rows have no detail items. So my create new row button won't show up.How can I creat
-
Hi to all Creating ADOBE form using Tcode "SFP" while activating the form i am getting error which i mentioned below can anyone give the solution for this problem. "_SOAP framework:SOAP run time exception :CSoap Exception transport :HTTP send fai
-
Just got a new iphone 5. When I plug in the ear buds, the audio still comes out of the phone itself. How do I transfer the audio to the ear buds?
-
Hi, Before this, everything is fine for my Oracle express 11g inside my OL5.8. Now I get this oracle@localhost:~$ sqlplus /nolog bash: sqlplus: command not found using oracle user in my OL 5.8. why?