15,127 Topics
| |
this is what i got: function roll(id,h){ //menu = document.getElementById(id); cont+=1; document.getElementById(id).style.height = cont; t=setTimeout("roll('"+id+"',"+h+")",100); if (cont > h){ cont=1; stop(); } } this should resize a layer's height like an animated dropdown menu ... but it simply won't assign the new height.tryied also: function roll(id,h){ menu = document.getElementById(id); cont+=1; … | |
I'm trying to make a simple calculator and whenever I want to add text to the textfield(say a number) it will show up, then will dissapear. [Code] function display(number) { var x = document.form1.displayText; x.value = number; } [/Code] This is how I'm doing it, but why is the text … | |
Hi everyone, I was trying to achieve a functionality for drop down box to remember its selected value if the page reloads. I saw some code on this forum using onload method. Title of the thread is "Javascript generated drop down menu " within the last two weeks. Problem is … | |
Hi, I've been beating my head against my inability to force Safari to dynamicall y load an external Javascript file, and was wondering if anyone has any advi ce. My current code works fine in Firefox and IE: [FONT=Courier New] var e = document.createElement("script"); e.src = url; e.type="text/javascript"; document.getElementsByTagName("head")[0].appendChild(e); [/FONT] … | |
I have this code that I am using in C# calling a Response.Write to call another aspx page within a frame. [B]Response.Write("<script language=javascript>parent.Frame.location.href('detail_search.aspx?NameOrCat=1&strFor="+strName+"&catDesc="+strCategory+"&clickedButton=0&Where="+this.WhereSelect.SelectedValue+"&searchOption="+this.rbtnStartsContains.SelectedValue.ToString()+"§ion_id="+this.ddwnSection.SelectedValue.ToString()+"');</script>");[/B] This logic works on explore 6.0 but I can not figure out why it does not work on explore 5.0 and explore mac. Does anyone know how … | |
I was wondering if someone could point me to some good online tutorials and exercises. I most importantly would like a site with some exercises to help me learn further. I have a book called "JavaScript in 24 hours" and I have to admit, this book is terrible. It teaches … | |
want to load some external content into a hidden iframe. The hidden iframe will function as a buffer from which i can load the content into a <div>. The reason i am attempting this approach is because the external pages are located on a different domain at my company and … | |
Does anyone know if it is possible to place a .swf within a dhtml dropdown. For instance, On click drop down and externally load an swf within the dropdown. Any feedback would be great. Thanks | |
I am using javascript to display a dropdown menu on an html page. This menu lists 48 states and is used to calculate shipping costs to each state. I have an onChange() event in the <select> tag that sends the selected state to another function to figure up the shipping … | |
Hi , I have a function as : function doCheck(str1,str2) { top.LocalCacheLoadStatus = false; parent.SearchFrame.location.href=str1; g_str_Mode = str2; alert (g_str_Mode); } This has str1 as the name of the jsp file and str2 is the value which i have to pass to the jsp file given in str1.How do i … | |
hey guys i have a problem :S I'm making a site and now im trying to fix the menu, its a rollover menu and it should drop down...it works perfectly now probs there. but the problem now is that i want the menu in a frame. But then the dropdown … | |
Hi All I am hoping someone can help me out since this is driving me nuts. On my ASP.Net page I have DIV areas and one ASP.Net server label control : Code: _DIV area 1_____________________________________________________ Message Center View All Messages| _DIV area2_____________________________________________________ (lblMsgCenter) This is first test message. | | … | |
http://ww.bestblanks.co.uk/media.php hi im not sure what im doing wrong with this: have a look at the above url: each product name is suppose to open a small window which will go on to display a description of the product: however when you click on title there is an error and … | |
Hi - I'm hoping someone might know of a free or relatively inexpensive solution I can use similar to the "Related Search" box on Yahoo News. It appears to use a combination of Javascript and CSS. Here's an example: [url]http://snipurl.com/fz7l[/url] Click on Sandra O'Connors name to see the box appear. … | |
Greetings. I encountered this little problem and am stuck. I don't know what should I google. I am developing a webpage with Coldfusion and I need to use some Javascript also. I have a component, and onclick of that component, I would like to call a Javascript function and pass … | |
Hi all, I have spent a long time trying to get this sorted. I have searched high and low to get an answer. I hope one of you experts can help :mrgreen: I have a gif on a webpage (a chinese flag). When someone clicks on the gif they are … | |
I would like to open a web page with several layers on it to a specific layer depending on the link on the previous page. I know I can do this from within the same page but I would like to do this from an external page. Can I and … | |
:( I have a website at: [url]http://www.outingsunlimited.com[/url] This site has quite a few "mouseover" images (37 actually) and I need to preload them before I start. When someone goes to the site, while the images are loading.....the screen is just blank and they think there is a problem.....:( HELP !! | |
This is my php page it's have javascript problem so plz tell me what should i do. <?php session_start(); if($permission=="yes"){?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Gallery</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript" 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; … | |
I am using setTimeout() to provide a delay between changing images. The images are changed by looping back through a function. clearTimeout() is used to cancel the setTimeout function. The problem is that I would also like the initial image (image1.jpg) to be displayed when I'm finished with the looping. … | |
hi i am trying to turn this code: strOutput += "<input type=hidden name=\"amount\" value=\""+ moneyFormat((fTotal + fShipping + fTax)) + "\">"; into a html form line: <input type=hidden name="amount" value="??????????"> im not sure what i shud be putting in the value bit. can anybody help thanks simon | |
I have built a site and it looks fine when the screen is full size but cuts off when you make the screen smailler. What can I do to keep it looking the same on different screen sizes? | |
this seems to be a very simple problem, but i just can't get it done. how do i set a variable which is to display url response? let's say my request is "http://domain.com/datavalue.htm". the request returns some value ( let's say "30.0" ) when i use it with browser. now, … | |
I have a JavaScript to detect between Netscape version 6& below and IE, is there anything to detect Firefox? Basically I have two sets of code I want to display. One set for IE and FireFox, another set for old Netscape. Right now using the code below doesn't work because … | |
[CODE]<script type="text/javascript" language="JavaScript1.2" src="stm31.js"></script> stm_bm(["uueoehr",430,"/new/common/images/","blank.gif",0,"","",0,0,250,0,200,1,0,0,"","",83886089],this); stm_sc(1,["transparent","transparent","","",3,3,0,0,"#fffff7","#000000","up_disabled.gif","up_enabled.gif",-1,-1,0,"down_disabled.gif","down_enabled.gif",-1,-1,0]); stm_bp ...[/CODE] | |
thank you for entering this page i would like to explain what i should do in my project and my problem: 1- the project for student in the school . 2- every one has an private account and can use it for many things 3- every account has a table … | |
Hi there, I really can't see why here: [url]http://www.bswebconsulting.ch/kunde...nn/w_g_main.php[/url] the menu images on the right side show up normally and here: [url]http://195.186.60.100/online/index.php?id=7[/url] they only display after hovering over them. I've studied the source code many times now, but I have to admit that I can't see the error The menus … | |
Hey everyone, I've got a recordset of terms in my page. I know the recordset has all the terms from the sql table within it because i can get it to print just fine to screen. I need to put the recordset into an array. That way, a script that … | |
hi If you click on the following page [url]http://www.bluetipdvd.co.uk/indexd.php[/url] and the click on the two product links a new window opens which displays some more info. I am trying to make it so the window that opens displays info relevant to the the link that was click e.g clicking on … | |
I need to add a layer to a certain position on the page. The problem is that in each different screen resolution the layer appears is s different place. Is there a way to fix that? Thanks |
The End.