Jump to content

pulpfiction

Members
  • Posts

    1,210
  • Joined

  • Last visited

Posts posted by pulpfiction

  1. I think its pretty clear.....Link vchris gave is in RRGGBB [Hex code] format but you needed in RRRGGGBBB [Decimal]. so to convert hex value to decimal use [scientific] calculater in Windows.

  2. <table><tr><td>Here I place an image, with width 100% and height 100%</td></tr><tr><td>This data cell contains another table</td><td>This data cell contains another table too</td></tr></table>

    The problem is, the image in the upper row has the width of the first data cell on the second row, and not the width of the whole page!How can I change this?

    Im not sure if you are asking for a method to extend the first cell width equivalent to 2 cells in 2nd row. but try this. colspan="2" does the trrick below
    <table border="1"><tr><td colspan="2">Here I place an image, with width 100% and height 100%</td></tr><tr><td>This data cell contains another table</td><td>This data cell contains another table too</td></tr></table>

  3. Dont think its even Javascript. //Code Created by Agent Moose$(".drop_menu").before("<ul id='top_menu' class='drop_menu'><liid='menu_ucp'>................[im a PHP novice, correct me if wrong]Looks like PHP, before(...) should be another function. Also do you get any error?

  4. Try this...

    var strValue_original = "ababab"var strA = "ZZ~";var strB = "YY~";var strValue_display = strValue_original;strValue_display = strValue_display.replace(/a/g,strA);document.write("strValue_display (a):" + strValue_display + "<br />");strValue_display = strValue_display.replace(/b/g,strB);document.write("strValue_display (b):" + strValue_display + "<br />");

  5. Does the echo statement print without the name? Then $_REQUEST['name'] could be empty.Since you are using POST method, check if the variable $name_field has some value or not. if it has some value then try using $_POST['name'] inecho "Thankyou <?php echo $_POST['name']; ?php> for e-mailing Teversham FC\n Back to

  6. If you are asking about how to set value for hidden field.document.getElementById("hidden1").value='Some Value';Try this code. hit the show value button after page loads. it alerts "old value" of hidden field. then click "Change hidden textbox value" and then hit show value button to see new value....

    <html><head><script type="text/javascript">function changeValue() {  document.getElementById("hidden1").value='New Value';}function alertValue(){alert(document.getElementById("hidden1").value)}</script></head><body><form><input type="hidden" id="hidden1" value="Old Value" /><input type="button" onclick="java script:changeValue();" value="Change hidden textbox value" /><input type="button" id="button1" onclick="alertValue()"value="Show value of the hidden field" /></form></body></html>

  7. Javascript is client side scripting. user can right-click in the browser and "view source" and it will show all the javascript. along with the username and password. so it is not a good method.

  8. IM not sure, but will "target" attribute work.... try this.Index.htm

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><head><title></title><style type="text/css"></style></head><body><iframe src="Temp.htm" width="30%" height="100%" frameborder="1" /><iframe src="" id="showframe" name="showframe" width="65%" height="100%" frameborder="1" /></body></html>

    Temp.htm

    <html><head><script type="text/javascript"> </script></head><body><a href ="http://www.yahoo.com" target ="showframe">Frame  a</a><br /><a href ="http://www.google.com" target ="showframe">Frame  b</a><br /><a href ="frame_c.htm" target ="showframe">Frame  c</a></body></html>

  9. Try this if you are using <a>

    <html><head><title></title><style type="text/css">a.txt {  color:red;  text-decoration:none;}a.txt:hover {  color:blue;  text-decoration:none;}</style></head><body><form name="frm1"><a href="java script:void(0);" class="txt">Thanks for reading!</a></form></body></html>

×
×
  • Create New...