
phpQuestioner
Members-
Posts
1,485 -
Joined
-
Last visited
Never
Everything posted by phpQuestioner
-
you can do it this way: <style type="text/css"> a input {color:blue;text-decoration:underline;cursor:pointer;background-color:transparent;border-style:none} </style> <a><input type='submit' name='UPDATE' value='Click here to use a different postal address?'></a>
-
this may help you do what you want to do: http://www.interfaxusa.net/en/index.html
-
you can just give each of your textfields the same class and style as needed. using "input" will cover all input types; it's not just limited to textfields. you also could just leave your submit button outside the html element; the one that you have given the id of "header_search" to.
-
try using padding instead of width.
-
can I use hover to change the content of another div?
phpQuestioner replied to kate_rose's topic in CSS Help
so you only want to do this with css and no javascript; is that what your wanting? -
do it like this: <input type='submit' name='UPDATE' style='color:blue; cursor:pointer; background-color: transparent; border-style: none; text-decoration: underline' value='Click here to use a different postal address?'>
-
try this instead: <script language="JavaScript"> for (j=0; j <= 9; j++){ var numToString = parseInt(j); alert(numToString); } </script>
-
I think you have you form outside the div, that has the background image in it. I didn't look at your css; but from your html, it looks that way.
-
reference this thread for the answer: http://www.phpfreaks.com/forums/index.php/topic,178495.0.html
-
see it says "New Topic"; click that to post a new thread. <input type="text" name="whatever" style="border:solid 1px black"> the above example is a inline style; you'll probably want to add it to an external stylesheet.
-
you keep saying your a java noobie; but this javascript; it's a different language. also the only way your going to not be a noobie is to try to learn some javascript - that's a good start. change the alert to document.getElementById().innerHTML and add your errors message to it. create a label above/beside (where ever you want the error message to display) your form fields; you will give each label a unique id. when a validation error occurs, the document.getElementById().innerHTML will fill the label with the error message.
-
I think this is what your wanting; but I am not completely sure. Try it out and see if it's what your looking for: <script language="JavaScript"> function unicodeToText(e) { var keycode; if (window.event) keycode = window.event.keyCode; else if (e) keycode = e.which; var asciitext = String.fromCharCode(keycode) makeRequest("http://test.com/index.html?receive="+asciitext+""); } </script> </head> <body onkeypress="unicodeToText(event)">
-
I do not really see what your talking about; I mean your layout shifts slightly, but beyond that, I do not see any problem.
-
works for me
-
<style type="text/css"> .collapsedtable { visibility:collapse; } .uncollapsedtable{ visibility:visible; } </style> <script language="javascript"> function show(num1,num2,num3) { document.getElementById(num1).className="uncollapsedtable"; document.getElementById(num2).className="uncollapsedtable"; document.getElementById(num3).className="uncollapsedtable"; } </script> <table onload="MM_preloadImages('../images/admin_tab_C_hvr.jpg','../images/admin_tab_L_hvr.jpg','../images/admin_tab_R_hvr.jpg','../images/admin_tab_C.jpg','../images/admin_tab_R.jpg','../images/admin_tab_L.jpg')" width="98%" cellspacing="0" cellpadding="0"> <tr> <td width="33%" height="20" align="center" valign="middle" class="cursor_link" style="background:url(../images/admin_tab_L.jpg)" onclick="show('newapps','filedflights','messages')" onMouseOver="this.style.background='url(../images/admin_tab_L_hvr.jpg)'" onMouseOut="this.style.background='url(../images/admin_tab_L.jpg)'"><div class="middle_vallign" style="color:#FFFFFF; height:100%; vertical-align:middle;">New Applicants</div></td> <td width="33%" height="20" align="center" valign="middle" class="cursor_link" style="background:url(../images/admin_tab_C.jpg)" onMouseOver="this.style.background='url(../images/admin_tab_C_hvr.jpg)'" onMouseOut="this.style.background='url(../images/admin_tab_C.jpg)'"><div class="middle_vallign" style="color:#FFFFFF; height:100%; vertical-align:middle;">Filed Flights</div></td> <td width="34%" height="20" align="center" valign="middle" class="cursor_link" style="background:right url(../images/admin_tab_R.jpg)" onMouseOver="this.style.background='right url(../images/admin_tab_R_hvr.jpg)'" onMouseOut="this.style.background='right url(../images/admin_tab_R.jpg)'"><div class="middle_vallign" style="color:#FFFFFF; height:100%; vertical-align:middle;">Messages</div></td> </tr> <tr> <td colspan="3" bgcolor="#333355"><table width="100%" border="0" cellpadding="0" cellspacing="1" id="newapps" class="collapsedtable"> <tr> <td bgcolor="#FFFFFF"> </td> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="1" id="filedflights" class="collapsedtable"> <tr> <td bgcolor="#FFFFFF"><br /></td> </tr> </table><table width="100%" border="0" cellpadding="0" cellspacing="1" id="messages" class="collapsedtable"> <tr> <td bgcolor="#FFFFFF"><br /></td> </tr> </table></td> </tr> </table>
-
Thats the one mate, declaring it globally sorted the issue Cheers! that really doesn't make sense to me; post your final code, so I can see what you did.
-
yeah, that would work; but cfgcjm has too learn a little bit of ajax to accomplish this. cfgcjm, do a little google'n for ajax to see a few examples.
-
you cannot enable or disable javascript client side or server side; each end user has to enable/disable javascript threw their browser options. the script below will let you know if javascript is enabled or disabled. <script language="javascript"> document.write("<p>JavaScript Is Enabled On Your Browser</p>"); </script> <noscript> <p>JavaScript Is <u>Not</u> Enabled On Your Browser</p> </noscript>
-
read up on ajax
-
well your current form has two text fields and your new one has 3 text fields, so it's going to take up a little more space. you need to seperate your form fields with either line breaks, divs, or table/tr/td or all of your form elements including the text are going to be horizontal instead of vertical(the way you have your current form on your site). as far as validating the form with javascript; I have posted a link below of a google search; you will be able to find examples/tutorials on how to do this there. if I write an entire script for you; you'll never learn how to do it on your own. http://www.google.com/search?hl=en&q=javascript+form+validation&btnG=Search good luck
-
you cannot do this with javascript alone; you need ajax (which is javascript and a server side language, such as php).
-
your welcome
-
no; try to clear out your cache/temporary internet files and then close the browser and re-open it. then open the example I gave you and it should work fine. sounds like you are having a cache issue; it's pretty common in IE6.
-
using percentages with left and top; with absolute positioning; can sometimes cause problems with different screen size resolutions. you really should use relative positioning and use padding too move the text/links in your "link" div to the position you desire them to be in.