Jump to content

actionsketch

Members
  • Posts

    128
  • Joined

  • Last visited

Everything posted by actionsketch

  1. while I see what you're doing, I've never had much luck with refering to the name like that. I usually just use getElementById and don't worry about how to do it the other way...<html><head><script type="text/javascript">function mouseOver(var i){document.getElementById(i).src ="b_blue.gif"}function mouseOut(var i){document.getElementById(i).src ="b_pink.gif"}</script></head><body><a href="http://www.w3schools.com" target="_blank"onmouseover="mouseOver('b1')"onmouseout="mouseOut('b1')"><img border="0" alt="Visit W3Schools!" src="b_pink.gif" id="b1" width="26" height="26" /></a><br /><a href="http://www.w3schools.com" target="_blank"onmouseover="mouseOver('b2')"onmouseout="mouseOut('b2')"><img border="0" alt="Visit W3Schools!" src="b_pink.gif" id="b2" width="26" height="26" /></a></body></html>
  2. javascript would store it as style.backgroundcolor I believe
  3. actionsketch

    phtml links

    I've never heard of that happening... maybe try naming your pages .php? Can you show example?
  4. use something like this: <?phpif(isset($delete)){//delete stuff}if(isset($save)){//save stuff}?><form><table><?phpfor($i=0;i<mysql_numrows($result);i++){?><tr><td><input type="text" name="record01" value="<?=$myRecordValue[1]?>"></td><td><input type="text" name="record02" value="<?=$myRecordValue[2]?>"></td><td><input type="submit" name="save" value="save"><input type="submit" name="delete" value="delete"><input type="hidden" name="rownumber" value="<?=$i?>"></td></tr><?php}?></table></form> that was pretty thrown together, but I hope it answered some questions...
  5. <tag onclick="document.getElementById('table').style.visibility='hidden'">
  6. Here's what it should look more like: <form>Password: <input type="password" name="password" value="1jkh34k"> <input type="button" value="Enter Password"></form> although, setting the value to something seems kinda weird... if you want to check what password they entered in the box, you have to use either javascript or php.
  7. Also, in that particular situation, it might be be easier to say:<a href="#" onclick="this.href='new href' "></a>or<img src="img_src" onclick="this.src='new src' " />
  8. actionsketch

    urgent

    Your urgency doesn't make me want to reply any faster, I assure you... and I doubt it does most anyone else. Infact, you would need to pay me to consider your problem urgent.That said, could you show us the page in question? I don't really want to read your lines of code until I know what it is doing wrong in the first place.
  9. Well, I'm sorry but diving into your lines of css isnt very appealing to me right now =p. But I can tell you that this is a common problem and not easily fixed. Here's an idea though... height: inherit; You'll have to rearrange your code a little I'm sure, but it would be clean. Unfortunately IE doesnt support inherit yet, so you might not want to use it after all =/. Good luck
  10. well, you can use php. If you're looking for a clock that will show the seconds changing, then sorry... but if you just want today's date then you can easily use php. http://us3.php.net/manual/en/function.date.phpyou could do something like this:<?=date("m.d.y");?> and that will return month.day.year (ex: 10.25.05)
  11. If you know what your doing, you can emulate <img> and <a> and almost completely rewrite html with xml and css. I did it . You cant emulate things like <title> but oh well.
  12. here's a quick example of how I'd do it: <body style="background-image: url('myBGdir/<?=$bg?>');"><?php//this will put all the filenames in the directory into the variable as an array$files=glob("myBGdir/".*);//go through the array and make thumbnails accordinglyfor($i=0;$i<count($files);$i++){echo "<a href='?bg={$files[i]}'><img width='50' height='50' src='{$files[i]}'></a>";}?> The code was written on the spot and might have some errors, but it should work, and you don't need to edit any files with php!
  13. actionsketch

    Comments!

    yes. There's tons of ways to do it, I suggest you find a premade package... maybe something like a blog... the simplest one you can find that does what you want and then start reading through it and trying to understand how they did it.
  14. layer? If you're refering to <layer> then you should start using <iframe> instead. <layer> isn't W3C compliant. And, if I'm right about that first part... then here's the answer to your question! <iframe name="myLayer" src="index.htm"></iframe><br><br><a href="blah.htm" target="myLayer">Click</a> to change the page shown in the iframe.
  15. I'll certainly do my best to help answer any questions you find on your path to web design greatness.
  16. Also, it should be mentioned that if you use <textarea> or anything where the text you want is located within two tags( ex: <div></div>) you can access it by using document.getElementById('myId').innerHTML = "boo";
  17. actionsketch

    Sql Query

    whoa, really? That's pretty cool... I woulda thought that browsers need an absolute path for all images that it displays.EDIT:indeed you can, but it would hurt the server processing time and is unnecessary. http://news.postnuke.com/index.php?name=Ne...3&theme=Printer
  18. actionsketch

    IE probs

    hmm... well I don't know if this will work, but it would be worth a try. Make the first possible condition be document.getElementById, seeing as that works in both FF and IE and should be the first choice of action, not document.all. Perhaps the document.all is being called and not working as it should since it's depricated. it might also be worth trying: function updatetitle(){ 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;}
  19. the following line wont work in java script: {a href="#http://www.w3schools.com"}to redirect the user, you have to do:window.location.href="http://www.w3schools.com";
  20. actionsketch

    CSS problem

    your code looks fine to me, it would be easier to help you if you could upload your work as a test page somewhere and tell us exactly what isn't working correctly.
  21. IE doesnt support it, and I'm almost positive it won't force word wrapping like that.
  22. not really sure what you mean exactly... you can set images through styles with the background-image declairation or if you use the content declairation. I recommend you look these two up and see if they would work for you, if not then I don't think you can.
  23. use javascript and the onKeyPress event to force numbers.
  24. actionsketch

    php set focus

    You can't. PHP is limited to doing server-side processes and cannot talk directly to the browser like that. Javascript is your only option.
×
×
  • Create New...