Jump to content

umekille78

Members
  • Posts

    58
  • Joined

  • Last visited

Everything posted by umekille78

  1. Hi!!I have used onMouseOver to change images. But my question is if you can change the back ground color on a TR part of a TABLE with a onMouseOver?? If one can do that, can anyone help me with the code? <TR BGCOLOR="WHITE"><A HREF="nr1.html" onMouseOver="document.images[0].src='spelare/bilder/1_liten.JPG';"><TD>Nr 1</TD></A></TR> In the code I cange image[0] but what I want to cange is the BGCOLOR in the TR from "white" to "red"Please help me if you can. Im real new to JavaScript and cant find the code for this problem.
  2. Thank you aalbetskiYou solved the problem
  3. This is kind of important to me. Im trying to help a hockey organisation with there home page.Im helping them for free ofcourse so I dont have that much time to spend on this task as it interferes with my ordenary jobb.PLEASE PLEASE HELP ME!!!
  4. Hi!Is it possible to change 2 pictures on one "oneMouseOver"?? onMouseOver="document.images[0].src='A.jpg';"onMouseOver="document.images[1].src='B.jpg';" I thought of using a function: function SecA(){ document.images[0].src="A.jpg"; document.images[1].src="B.jpg";}onMouseOver="SecA();" But I dont get that to work. Does anyone have some ideas that can help me?/Per
  5. umekille78

    New window help

    Hi all!Need some help. I have made a php page that opens a new window. My problem is that I need a scrollbar on this new page and I dont know how to add that to the page. Can anyone help me?<script> function bild(form){window.open('','Bild','height=625,width=600,status=no,toolbar=no,menubar=no,location=no,resizable=yes');form.target='Bild';}</script>print ("<form action='bild.php'><input name=submitButton type=submit value='Bild' onclick='bild(this.form)'></form> ");
  6. Hi all!I need a debugg tool for PHP. Im wrighting a program and Im having some problems with it. I have tried to debugg it manualy but that dont work. I have asked people for help but with out any luck.What I need is a good debugging tool. Does anyone know if one exists?/Per
  7. Hi again!I solved this problem my self.It was only to enable a dll file in php.ini No problem att all.Remember to enabel it in the right folder./Per
  8. Hi all!Im trying to conect my PHP page3 to an MySQL database. I use the function mysql_connect() like this: $dbHandler=@mysql_connect("localhost","name","pass")or die("No good!"); The problem is that i get a: Fattal error: Call to undefined function mysql_connect()I use PHP 5 on my computer and as far as I can tell that function is sopoused to exist.What to do?? HELP me!!
  9. Hi all!I dont get a conection or a error message when I try to conect to MySQL with PHP like this: print("1");$dbHandler=@mysql_connect("localhost","name","pass")or die("2");print("3");$DataBas=mysql_select_db("TestDB");$q="SELECT * FROM Anvandare";$a=mysql_query($q);print($a);print("4"); I added printouts of numbers to see what hapend. I only got "1". Nothing more. I have created a user in the data base TestDB with name and password. I use PHP 5 on Apache and I have installed MySQL on the same computer.What am I doing wrong. This is how my book said that I should wright the code.HELP please /Per
  10. Hi all!I just instaled MySQL on my computer. In the instalation I got to chose a root password. But now I want to create a user. Insted of using the DB with root all the time.The problem is that I have no idea how to do this. And I didnt find anything in the SQL section either.Help me please!! /Per
  11. Hi all!I have a problem in my page. One page tries to send a boolean with a form like this: <input type="hidden" name="flag" value=FALSE> When I send this to my other page that page handes $flag like a string.I tried a IF statment on it and it returns as if TRUE. I used print to look at her $flag and it was FALSE as it should. The only way I got it to work right was to do a IF statment like this: if($flag == "TRUE") I dont know how to get this to work right. Help needed./Per
  12. Hi all!I use this JS to open a new window: window.open('','Chatt','status=no,toolbar=no,menubar=no,location=no,resizable=yes'); This gives a new window that is full size. But not maximised. Is there some way to get the new windo to open in maximised mode?/Per
  13. Hi all!As a part of a chatt page I use JS to open a new window as a result from a form. Like this: <script>function cForm(form){window.open('','Chatt','height=700,width=750,status=no,toolbar=no,menubar=no,location=no,resizable=yes');form.target='Chatt';}</script> The script is caled by the form. Like this: <input name="submitButton" type="submit" value="Enter" onclick="cForm(this.form)"> Now I like to close the old window as the new one pops up. Is this posible? If so, how is it done?/Per
  14. Hi all!Im building a webbpage. The pages users should be able to log in. To do this I thought of putting Username and password in a MySQL database. Along with all the oter information am going to stor on the users such as Name LastName and more.Is ther any way of making MySQL safe enough to hande this? Or can I use PHP in some way, as it is that script that is going to handel the database.All ideas are welkome./Per
  15. Thanks again!You are the best at helping./Per
  16. Hi again!That works. The problem is that is alsow disables the right click options on the pictures I wanted to have.Any ideas?/Per
  17. 2 smal questions.1: How do you acsess the menu from the key bord?2: How do you disable that option?/Per
  18. Thancs Scott100 you are a true life saver
  19. Hi all!Im very new to JS so please be patient with me I have a HTML/PHP page with this JS code att the top: <script>var PicFlag = false;function onpic(){ PicFlag = true;}function offpic(){ PicFlag = false;}function click(){ if (event.button==2 && PicFlag == false) { alert('Rightclick is not permitted') }}document.onmousedown=click</SCRIPT> Later in the same document a php function prints: <IMG SRC='http://www.sf.se/clayton/gfx/sfbio_logo.gif' onMouseOver=onpic onMouseOut=offpic> The purpose of this is to enable right clicking on the picture but no where else.Anyway. The code dont work. And becouse Im no good at JS i dont get why. Can any one help me?/Per
  20. Hi!Im using a form to send a text from one page to another.Like this: $StartText="The text that is sent.";<input type='hidden' name='message' value=$StartText> The problem is when i use $message in the other page it only returns "The" not all of the text. I try to use the text in second form.Like this: <input type=text size=50 name=message value=$message> Can anyone help me figure out why I only get "The" and not the full string??/Per
  21. Hi!Im using a form to send a text from one page to another.Like this: $StartText="The text that is sent.";<input type='hidden' name='message' value=$StartText> The problem is when i use $message in the other page it only returns "The" not all of the text. I try to use the text in second form.Like this: <input type=text size=50 name=message value=$message> Can anyone help me figure out why I only get "The" and not the full string??/Per
  22. Hi!Im trying to put up a server on one of my old computers. Im using Apache on windows. When using PHP you need a program or module for apache to be able to read/execute PHP. Is it the same way for Java Script?Do I need anything special for my apache server to be able to work with JS?As PHP is a server side script and JS is a client side script I would think that I DONT need anything. But need to be sure.Can any one help me?/Per
  23. Hi!Im just starting up a personel server. Im going to use it for development only. Its supose to have PHP and a SQL db. Im using Apache on windows.As Iv heard mySQL is open source. But i dont find it anywere fore download. Maybe Im just looking in the wrong places. Can any body help me find a place to download mySQL from? And a place that have good documentation on how to install aswell?Im stuck in my development until I have my server up and runing so some good and fast help is needed.Thanks to all how helps me!/Per
  24. Hi!Can anyone help me and explain the diference between mySQL and postgreSQL. Im trying to set up a Linux webserver using Apache and PHP and a SQL program.If I remeber corectly postgreSQL is free. Is that right? And if so how much do mySQL cost?Can anyone help me with this? Is PHP and postgreSQL conpatable?/Per
×
×
  • Create New...