I would like to set dynamically the pressed item of a menu of a form in javascript. First, how to get the value of the item that has been selected with the mouse. Then how to set it in javascript. I don't know the object name. I do that like form.myfield.value = xxxx with an input text, but it it doesnot work for menu!
I am using the autoupdate plugin. I have a listbox(asp.net control ) just below the autocomplete textbox. In IE6, the autocomplete menu goes behind the asp.net control. This happens only in IE6. It works fine in IE7.
I have a .net application that I am trying to add some javascript code to for a client-side execution. What I want to do is resize all the HTML text fields on my web form, but instead of writing a line for each text box I would like to loop through a collection of controls and resize the control if it is a text field. Is there a way to do this in javascript? The function below is what I have been toying with for the past couple of hours. Another idea was to use a css, but I can't find an element for the text field.
function Test() { Tarray = new Object; Tarray = document.Form1.children for (var prop in Tarray) { //document.writeln(Tarray.toString); var s; s = prop if (Left(s, 3) == "btn") { prop.height = "20px"; } } }
I have been unable to reduce the size of the text that goes along with my image slideshow(the play, next, stop buttons and also the captions for the pictures) without reducing the size of my title text(my friends).
I need information (sure, i used google but couldn't find anything useful yet) about automating/adjusting Acrobat Reader using javascript. I need to print multiple documents without having to open them individually and selecting the print option on each document. I also need to adjust the user interface. Sometimes printing is allowed, sometimes it is not. So i need a way to disable (or remove) the print button from the default toolbar.
Anyone has experience (sample code) or documentation i can use?
When designing a site, a request has come to me about printing web pages. What they want is the page to be broken up into frames, and only one frame will be able to be printed. so that if the page is broken into 3 vertical frames. Would it be possible to have it only print the middle page if the person clicked the print button.
This is so that even beginner users to IE or Netscrape would be able to get a printout of the page without having to change options in the print preferences.
* The example the person gave me was similar to Page Breaks in MS Excel. You can see the whole thing, but when print is clicked, you only get a certain section printing (even a beginner can do this).
I'm using input hidden control's value in the javascript function.
same code is working fine on all other browser except a specific version of safari(i.e.: MAC OS 10.3.7 and Safari 1.2.4).
problem: control's value is not getting displaying at the first time when the page gets load, although the same piece of code would work if I just refresh the page, strage.
declaration of hidden control: <INPUT id="hSliders" type="hidden" runat="server">
javascript code which is calling the value of hSliders:
alert(document.Form1.hSliders.value)
this alert is showing nothing although it should display string.
i check the view source also control's value is getting populated.
i have some pictures in a page. there are have difference sizes. some of them are too widen for be arrange in a line. so i been tried to adject their sizes to more suitable.
i add a event to that image likes: <img id="img" onLoad="adjustSize(this)" src="123.jpg">
and write a function in javascript: function adjustSize(obj){ if (obj.width>250){ sizeRate=250/obj.width; obj.width=obj.width*sizeRate; if (obj.hight>268) obj.hight=268; }}
but exactly,i can get the image's width and height. cuz the loading hasn't finished while the function of adjustSize works.
This JavaScript Ticker is an example of "Data Binding" using "Tabular Data Control (TDC)" which is a Microsoft ActiveX control built in to Internet Explorer....
Situation:I have a very long page divided into many sections vertical-wise marked by bookmarks, say pageX.html#s1 to s10. I need to show the section inside an iframe (iFrame1) on the mainpage (mainpage.html). I am thinking of having 4 buttons, sitting on the mainpage, to help navigate between these sections on pageX, namely NEXT, PREVIOUS, TOP, END.condition of the frame, fixed width/height, no scroll, no border.Very new to javascript but need this code to make a page work for BIZ.
I am trying to do a site in FrontPage2003 using dwt and css. I added a drop-down javascript menu (EZMenu). It is working however the CSS overrides the formatting of the menu.
Is there a way to either shut off the CSS for the menu or add lines to either the JS file or the CSS page to let the menu formatting show thru?
I'm trying to install a javascript menu. You can find the menu here and I'm trying to install it here.
I followed the install directions, but for some reason I can't get it to show up. I want the menu to show up where I have the main menu on the left of the page.
I have a logo jpg and then a jpg which is a solid blue line. I am trying to make my javascript menu load underneath these two. I have put the src="menu.js" after the two jpg's in the code but it always loads above them in the browser.
Is there a way of getting my menu as the third item down from the top or will javascript always load to the top?
I am making a web page and i have one js menu in it. But when I resize page in the enternet explorer, menu stays at the same size and that is bad. Anyone knows how to deal with it or anyone has some manu in which I can define size in percents, not in pixels.
i am trying to get a horizontal menu and sub menu in css, which works great on my Firefox But, in order to get around the ie hover bug, i included some javascript which gives me a strange result.. Code:
I do not understand javascript at all. For about eight years I've had a UDM javascript menu on each of about 200 pages. It consists of a bunch of files that live in the top of my website and are called to each page by four lines of script. I have had only to edit appearance and links in one file. Instructions were to leave the others alone.
The present version of the UDM menu is not free, as the old one was, and if I did buy it I'm not at all sure I'd be able to cope with it. Unless the names of the new files matched those of the old ones, I'd have to go in and edit each page individually.
My problem is that IE9 doesn't display the menu, but does display its background, so there's a big beige block on the top left of every page. It looks bad.
Would I be able to add to one of the files something like a conditional comment such as "If IE9 display none"?
I like it because everything is modular, the submenus stays within the shape of the rectangle without jutting out horizontally across the website. However, when I tried to tweak with the code some of the images just wouldn't show up. I saved the ENTIRE website but modifying the names of the images just didn't work. As a result I am comtemplating on doing this same menu in Flash. (loading the same positioned swf on top of another, on top of another).
i need to design a site with a lot of pages and i need to use drop down menu using javascript to make navigation easier. pls anyone got the code or a tutorial for me to learn from.
say i got a text link called About Us and i want drop downs under it like
About Us Mission Statement Staff Vision Objectives