52 Posted Topics
Re: You could use javascript to preload images. [CODE] <head> <script> preload_image = new Image(); preload_image.src="http://mydomain.com/image.gif"; </script> </head> [/CODE] This will put the image in cache as the page loads. | |
Re: [CODE] <script> function totalTable() { var arr = document.getElementsByTagName("TD"); var count1 = 0; var count2 = 0; for (a = 0; a < arr.length; a++){ var mytd = arr[a].innerHTML; if (isNumeric(mytd, false) == true) { if (arr[a].className == "column1"){ count1 = count1 + parseInt(mytd); } else { count2 = count2 … | |
Re: Graphix is correct. min-height will not work in IE < 7. | |
Re: Here are two functions for email and numbers. I don't know what you want to check for with text. If it's free form text there's really no check. Did you just want characters and no numbers? [CODE] <script> function validate() { if (!isEmail(document.getElementById("emailAddr").value)) { alert("Bad email address"); return; } if … | |
Re: I'm not sure I understand. Do you want it to toggle? Do you have some sample code? | |
Re: This code is nested inside a form tag and you have a submit button? | |
Re: Not sure if this what you need. I've used this to capture keydown. It's not real thorough on identifying browsers, but it seems to work. Microsoft and Mozilla do it differently, as usual. [CODE] if (navigator.appName == 'Netscape') { window.captureEvents(Event.KEYPRESS); document.onkeypress = netscapeKeyPress; } function netscapeKeyPress(e) { keyCode=e.which; handleEvent(keyCode); } … | |
Re: Every browser has bugs. In theory, if your running in IE8 and your in quirks mode you will inherit IE6 and IE7 problems. The best thing you can do is put in a valid strict doctype then validate your code. Once you've cleaned up any errors it should work fine. … | |
Re: Yes NextCom is correct. In order to use string functions such as split and replace you have implicitly declare the var as a string. You can also do it this way. var output = counter1.toString(); | |
Re: Rather than using <body onload="startUp();"> try this in a global area of your javascript. window.onload = startUp; | |
Re: Data would be stored in a database on the server. A flat file could be used but that is pretty old school. | |
Re: You would have to be a darn fool to discard IE6. I personally know of 350,000 employees still using it. The IT department is so afraid of Microsoft upgrades that we are stuck with it. I illegally use Firefox. | |
Re: You said you have a div container around the image and the text. And you put a margin around the entire div. Are you mixing position absolute or relative with floats? Are you sure the div container is truly containing both the image and the text? Try putting a border … | |
Re: Your question would be better answered by an IBM forum. They developed DITA. It is basic XML. It is a standard not a language. | |
Re: What you posted was asp code not html. My suggestion is that you bring up the web page and do a View Source in your browser. The javascript is probably right. Your fields are probably empty when they hit the browser. Which would mean you have an asp error not … | |
Re: It works for me. You didn't show your head section. I'm guesing that is where your problem is. Also make sure your image links are working right. The text was white and I had no images. So it did come up blank the first time. style.css [CODE] ul.topnav { list-style: … | |
Re: This is your best bet. [URL="http://www.w3schools.com/"]http://www.w3schools.com/[/URL] | |
Re: content is used with the before and after. See here. [URL="http://www.w3schools.com/Css/pr_gen_content.asp"]http://www.w3schools.com/Css/pr_gen_content.asp[/URL] | |
Re: Did you try this? document.getElementById('banner').style.backgroundImage = ""; | |
Re: Your code looks okay. I think you need to specify the fontSize="24" as a point or pixel or something. Like fontSize="24pt"; I didn't try this, but your code looks fine. | |
Re: Your code is full of syntax errors. I think this is what you want. But, you really need to learn this stuff on your own. [CODE] <script> difference(); function difference() { var numberArray = [16,14,4,5]; var diffArray = new Array(4); var count = 0; var numLen = numberArray.length; for (count … | |
Re: [URL="http://javascript.internet.com/generators/dhtml-tooltip-generator.html"]http://javascript.internet.com/generators/dhtml-tooltip-generator.html[/URL] | |
Re: Javascript, HTML and CSS working together will do animations. You can also use animated gifs and Flash. Javascript is the simplest in my opinion. If you search for Javascript games you'll find lots of cool stuff. Here is a couple homebrew ones. [URL="http://home.comcast.net/~harrierdh/David/shooter.html"]http://home.comcast.net/~harrierdh/David/shooter.html[/URL] [URL="http://home.comcast.net/~harrierdh/David/html/spcinv.html"]http://home.comcast.net/~harrierdh/David/html/spcinv.html[/URL] | |
Re: I tweaked your styles in the code below. Is this what you were trying to do? Seems ok in FF3 and IE6. [CODE] <div id="TopNav" style="height: 100px"> <span class="style8"> <form> <table align="relative" style="float: right; margin-top:30px"> <tbody><tr> <td> <input type="text" class="txt" name="Username"/> </td> <td><input type="password" class="txt" name="Password"/></td> <td><input type="image" value="Submit" src="http://www.gosfordit.com/index_files/login_13.png" … | |
Re: When you say address line do you mean the query string where you would type in [url]www.google.com?[/url] You can not run javascript from there. | |
Re: I'd try toying with margin and padding on the img id "dragon". That's where IE differs the most from other browsers. If you don't already, get a debugger for IE like Firebug is for Firefox. | |
Re: In popup: window.opener.document.getElementById("myParentWindowVariable").innerHTML = "somevalue"; In parent: <p id="myParentWindowVariable"></p> | |
Re: Try it this way instead. [CODE] <!DOcTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>first java script example</title> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> <script type="text/javascript"> function calculateArea() { var Width = document.getElementById("txtWidth").value; var Height = document.getElementById("txtHeight").value; area=Width*Height return (area); } </script> </head> <body> <form name="frmArea action="#"> enter … | |
Re: Zero13, Agreed! That is not enough information. Too many things affect page layout not just two lines of css. The biggest issue people have with IE is the way it handles margins and padding. I would start there. | |
Re: Hey Pawn10, It's pretty hard to debug nothing. Send some code or a link to your page. Thanks. | |
Re: Is this what you are looking for? http://www.cssstickyfooter.com/ | |
Re: <script> function initialize() { setTimeout('redirectMe()', 5000); //delay 5 seconds } function redirectMe() { location.href = 'http://www.google.com'; } </script> <body onLoad="initialize"; | |
Re: Absolute positioning is just that. You can not put it in a container. It is always positioned relative to the top left corner of your browser window. You could try relative positioning. It would be better to work with floating though. In the long run it will save your hair. | |
Re: Try this one. I've used it for years. [URL="http://www.walterzorn.com/dragdrop/dragdrop_e.htm"]http://www.walterzorn.com/dragdrop/dragdrop_e.htm[/URL] | |
Re: I like your first approach best. Without images or a link to your page, it's kinda hard to reproduce the page. | |
Re: If it was me I'd just download a template like one of these. I would suggest though, if you haven't already, get Firefox and Firebug. That way you can tweak the CSS on the fly and debug it yourself. [URL="http://www.bluerobot.com/web/layouts/layout1.html"]http://www.bluerobot.com/web/layouts/layout1.html[/URL] [URL="http://css-discuss.incutio.com/?page=ThreeColumnLayouts"]http://css-discuss.incutio.com/?page=ThreeColumnLayouts[/URL] | |
![]() | Re: The code looks ok. That's probably what your saying. Do a view source of the page after the servlet sends it out. There may be another element affecting it. Like a missing closing tag. When you do a view source, make sure all your quotation marks are correct. Hope that … ![]() |
Re: You didn't post working code. Where is the content piece of html. I don't see where you are doing any onMouseOut or have not posted any code that would even begin to act like you say. I tried the code. Removed all the javascript references to con. Then I realized … | |
Re: To create an upload box use the code below. You will need to have a program on your server to save the file. Hence "/cgi/bin/some-script.cgi". There is no auto magical way to upload from the client. You have to process this using server code like php, java, etc... [CODE] <form … | |
Re: You can't control the hover with CSS. You'll need some scripting. You could create a hidden div to hold your sub menu and position it off the page. Then when the user hovers you could slide it into position. When the user hovers over another drop down menu you'd slide … | |
Re: You did not provide a full link. There is no image. | |
Re: As techsheaven said you need to send the source code as a view source from your browser or send a link. The code you sent earlier is some wierd tumblr stuff. But that is not what the browser sees. Those {} variables are preprocessed on the serve before being sent … | |
Re: You're not providing enough information. Do you have some code? | |
Re: You didn't provide enough information. What are you clicking exactly? Is it a combo box, checkbox, button? | |
Re: I would start here. [URL="http://www.w3schools.com/ajax/default.asp"]http://www.w3schools.com/ajax/default.asp[/URL] | |
Re: I'm guessing you mean you only want odd numbers? If that's the case use the modulas function built into javascript. Modulas is the remainder after a division. If you divide numbers by 2 you'll get this. [CODE] <script language="JavaScript"> answer = 7 % 2; // odd numbers will always a … | |
Re: Try removing the target="_parent" in the <form tag. | |
Re: That's really not enough information. What is this representing? Do you have some code to look at and maybe a better description of why you would want to create an array from the this object? | |
Re: Are the two javascripts in the same web page? |
The End.