Jump to content

actionsketch

Members
  • Posts

    128
  • Joined

  • Last visited

Posts posted by actionsketch

  1. if I understand you right, you want to control the scrolbar position... I'm not sure if you can horizontally, but you can use <a href="#address">Address</a>and<a name="address"></a>to tell the browser to jump to a specific location on a webpage.so when you open your new window, you would have to open "mywindow.html#address" and it would jump to that location on the webpage.

  2. well, you can have a onkeypress event for each id that will check if the id has anything in it and if it does, check the corresponding name and change the borders accordingly. As for onsubmit, if you check for errors and find some, you would want to return false to make sure the form doesn't get sumbitted.Hope that answers your question

  3. yes. Just make sure than anytime you set display, you also set float. As for what you put inside, you can put anything and it shouldnt break the inline containers...here's what it should look kinda like:

    header<div class="leftcolumn" style="float:left; display: inline"></div><div class="maincolumn" style="float:left; display: inline"></div><div style="clear:both"><!-- this will allow anything else to be put under the table instead of inline with it --></div>footer

  4. show us your code for setting up the frames. And as for a better way, I like to just use tables. Most people like to use css and divs... and using simple php to store your layout in one file is always good.

  5. Well, I'm not real familiar with contentDocument but I took a shot at fixing anything I could see as not working...the only real problem I saw was when you were referencing leftline.width, you have to use leftine.style.width. here's what I came up with:

    function updatetitle(){  if (ie4||ns6){    var titletext=document.getElementById("titletext");    var theiframe=document.getElementById("theiframe");    var leftline=document.getElementById("leftline");    var rightline=document.getElementById("rightline");    titletext.innerHTML=theiframe.contentDocument.title;    var titlelength=theiframe.contentDocument.title.length;    leftline.style.width= 350 - titlelength * 5;    rightline.style.width= 310 - titlelength * 5;  }}}

  6. You can't easily. If you wanted just plain text to have a tooltip, you can do <a title="">text</a>, which I found out by trying to solve you problem! But it seems the <select> tag will completely ignore any effort to add tooltips to the options. Which means that if you desperately need tooltips, you have to make your own in javascript.

  7. PHP doesn't understand "navigator.userAgent". After a quick search on google, I found a browser detection script for php here.Other than that, I havn't seen "switch(variable ==)" before, but after thinking about it... it would make a lot of sense, so there's a good chance that it's legal and I just don't know about it. But! If your script isn't working, you might try "switch(variable)" instead... just in case.Also, for further PHP syntax questions... php.net has a great PHP manual that covers anything and everything about php.

  8. It should be explained on w3schools.com. Also, please try to spend some time writing your question... I can't stand it when people dont capitalize their 'I's and "1 text" isn't even close to correct grammar. Point is, I can't take you seriously if I don't think you are serious and as long as you can't write correct english, I don't think you're serious.Don't take this as an insult but take it as a helpful tip for life.

×
×
  • Create New...