Jump to content

xbl1

Members
  • Posts

    214
  • Joined

  • Last visited

Everything posted by xbl1

  1. Thanks i will try to use the Javascript
  2. HI;Does the hover not support for the IE browser ?I am using a hover for buttons in IE browser, it does not has any reaction when the cursor is held over the buttons, but it does work in the Firefox, Netscape, and Opera browser.Could any one tell me why ? Thanks.My code as following; <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"><html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <style type="text/css" > body { font: 80% arial, helvetica, sans-serif; background: white; margin:0; } #container{ position: relative; width: 780px; w\idth: 780px; border: solid #036; border-width: 0 3px; margin: auto; } table { position: absolute; width: 700px; margin: auto; } table td { background: url(mybutton1.jpg); background-repeat: no-repeat; background-position: center; width: 150px; height: 50px; text-align: center; font-size: 20px; color: white; } table td:hover { background: url(mybutton2.jpg); background-repeat: no-repeat; background-position: center; } </style></head><body><div id="container"> <table> <tr> <td> Home </td> <td> About Us </td> <td> Contact Us </td> <td> Help </td> </tr> </table> </div></body></html>
  3. Thanks for your response.These are quite usefull details for me. I prefer the third way, it is convenience for both side, and i just found a website to help people to free convert their files, it is great, which is http://media-convert.com/.But i think i may spend more money to create my own flash video server hosting, it will cost $5000 for year, i think. because the large plan from the Influxis, it just can allow up to 100 user Simultaneous Connections, and the Bandwidth Allowance just 50 GB transfer / month, so probably i need to create my own one from the Influxix.
  4. Hello;I want to let customer upload videos to my website and watch them, exactly like youtube does.Do you think what kind of skills i need to have?At the movement, i can use php, javascript, and i will learn some stuff from W3Schools SMIL Reference and W3Schools SMIL Tutorial. Thanks
  5. xbl1

    open a new file

    Hi vijay;Thanks for your advice. it works now.i set the permission of the file to 740, then it does work, i am hosting now.Do you think the 740 is enough safty?
  6. xbl1

    open a new file

    Hello; I am trying to open a new file, but it give me the following massage, could anyone help, please.Warning: fopen(testFile.php) [function.fopen]: failed to open stream: Permission denied in index.php on line 3can't open file<?php$ourFileName = "testFile.php";$ourFileHandle = fopen($ourFileName, 'w') or die("can't open file");fclose($ourFileHandle);?>
  7. Don't you think it can run on console and analysis it?
  8. Hello;I'd like to ask you some question, please.I am hosting at the movement.How i can validate my website which it include javascript and php code?I can validate the html and css by using some online validators, like w3 or something else. But how about the javascript and php code, how i can known the code is correct when some things wrong with my code.I could not find out anything could help me to validate that from server site, i could run my Mysql in server side to see it is alright or not.Any one could tell me how to solve this problem, please.Thanks
  9. Thanks, i will go to find it out
  10. Thanks, i found it out, it missed a header
  11. Could anyone help me to find some errors from the following; Thanks I got some error massage from my validator;1. Comment: The lite edition missed 2 warnings that the standard or professional edition would have found.2. Comment: 0 errors, 0 warnings, 0 messages, 2 comments. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><body><h4>Cell that spans two rows:</h4><table border="1"><tr> <th>First Name:</th> <td>Bill Gates</td></tr><tr> <th rowspan="2">Telephone:</th> <td>555 77 854</td></tr><tr> <td>555 77 855</td></tr></table></body></html>
  12. Hello; Could any one tell how to kill the scrollbars from IE, Firefox, Netscape,please.My following code just work for IE, it doesn't not affect another browsers. #newst {overflow: scroll; overflow-y: scroll; overflow-x: hidden; overflow:-moz-scrollbars-vertical;}<textarea name="newst" id="newst" rows="10" cols="45" ></textarea>
  13. xbl1

    Full reference

    you are welcome any time. in fact, some time i could not find some object like selecion from W3 too.
  14. xbl1

    Full reference

    here you are http://www.w3schools.com/htmldom/dom_obj_document.aspandhttp://www.w3schools.com/js/js_obj_htmldom.asp
  15. Hi Webworldx;At the movement, i got 3 browers in my computer. If i use the FireFox most of time, and i add some more links to bookmark later on. Then in this case, how i can import the bookmark from the FireFox to IE and the NetScape? Do you known how to do that?
  16. Yes, they can import these thing each other, i just downloaded them, and they asked me whether i want to import by popping up a window.
  17. If one computer have 4 different browser, do they affect each other perfomance?
  18. xbl1

    Help!

    change the "document.write("Hello, you are" + age + "years old"!)" to the document.write("Hello, you are" + age + "years old!"), then it must work.
  19. Hello; i got a bbcode, and i want to it whether it can be compatibility with firefox, mozilla, netscape navigator, please, and i has not of them. Would anyone help me to test it, please. Just see it can work on them or not.test.html<html><head><script language="Javascript">var isMozilla = (navigator.userAgent.toLowerCase().indexOf('gecko')!=-1) ? true : false;var regexp = new RegExp("[\r]","gi");function storeCaret(selec){ if (isMozilla) { // Si on est sur Mozilla oField = document.forms['news'].elements['newst']; objectValue = oField.value; deb = oField.selectionStart; fin = oField.selectionEnd; objectValueDeb = objectValue.substring( 0 , oField.selectionStart ); objectValueFin = objectValue.substring( oField.selectionEnd , oField.textLength ); objectSelected = objectValue.substring( oField.selectionStart ,oField.selectionEnd ); // alert("Debut:'"+objectValueDeb+"' ("+deb+")\nFin:'"+objectValueFin+"' ("+fin+")\n\nSelectionné:'"+objectSelected+"'("+(fin-deb)+")"); oField.value = objectValueDeb + "[" + selec + "]" + objectSelected + "[/" + selec + "]" + objectValueFin; oField.selectionStart = strlen(objectValueDeb); oField.selectionEnd = strlen(objectValueDeb + "[" + selec + "]" + objectSelected + "[/" + selec + "]"); oField.focus(); oField.setSelectionRange( objectValueDeb.length + selec.length + 2, objectValueDeb.length + selec.length + 2); } else { // Si on est sur IE oField = document.forms['news'].elements['newst']; var str = document.selection.createRange().text; if (str.length>0) { // Si on a selectionné du texte var sel = document.selection.createRange(); sel.text = "[" + selec + "]" + str + "[/" + selec + "]"; sel.collapse(); sel.select(); } else { oField.focus(oField.caretPos); // alert(oField.caretPos+"\n"+oField.value.length+"\n") oField.focus(oField.value.length); oField.caretPos = document.selection.createRange().duplicate(); var bidon = "%~%"; var orig = oField.value; oField.caretPos.text = bidon; var i = oField.value.search(bidon); oField.value = orig.substr(0,i) + "[" + selec + "][/" + selec + "]" + orig.substr(i, oField.value.length); var r = 0; for(n = 0; n < i; n++) {if(regexp.test(oField.value.substr(n,2)) == true){r++;}}; pos = i + 2 + selec.length - r; //placer(document.forms['news'].elements['newst'], pos); var r = oField.createTextRange(); r.moveStart('character', pos); r.collapse(); r.select(); } }}</script></head><body><center><form name="news"><input type="button" value="b" style="width:50px;font-weight:bold" onclick="storeCaret('b')"><input type="button" value="i" style="width:50px;font-style:italic" onclick="storeCaret('i')"><input type="button" value="u" style="width:50px;text-decoration:underline" onclick="storeCaret('u')"><input type="button" value="quote"style="width:50px" onclick="storeCaret('quote')"><input type="button" value="code"style="width:50px" onclick="storeCaret('code')"><input type="button" value="url"style="width:50px" onclick="storeCaret('url')"><input type="button" value="img"style="width:50px" onclick="storeCaret('img')"><br><textarea name="newst" id="newst" rows="10" wrap="virtual" cols="45"></textarea></form></center></body></html>
  20. >some buttons disapear. and some unexpected text in the textarea. But i have fixed it now, because it >missed a closs tag of [/table].it missed out of clossed tag for [/textarae]
  21. Yes, the code is exactly from the link of http://www.iceteks.com/articles.php/javascript/2. i just copied them and paste them. but the original code does not work properly. because the code is so long, so i do not want to paste here.1) some buttons disapear. and some unexpected text in the textarea. But i have fixed it now, because it missed a closs tag of [/table].2) when i click on the buttons, it does not work. i just copid the original ocde and pasted it.Could you copy it and paste it to help me to find out the problem, please. Thanks
  22. Hello; I got the following code from the link of http://www.iceteks.com/articles.php/javascript/2.and i find that some buttons do not sit in the right place. The buttons of post, preview and start over should sit outside of the textarea, but they sit inside the textarea.and the end of result should like the http://www.iceteks.com/articles.php/javascript/4 .and also it does not have reaction when i click a button, could you tell me why, please.
×
×
  • Create New...