-
html text alignment?
yep, is the simplest way!
-
html text alignment?
thanks, am going to use tables
- Image hover image?
-
html text alignment?
I never thought of that.. but is there any way just aligning it?
-
Image hover image?
here try this it uses javascript to change the image when it's mouse-overed and moused-out <img src="normal-image.png" onMouseOver="this.src='mouse-over-image.png'" onMouseOut="this.src='normal-image.png'">
-
html text alignment?
I'm making website for a restaurant, everything is finished apart from the menu. I need the menu to look like this: but the problem is I don't know how to align each piece of text to each side. any help? ~apprentice
-
-
Why doesn't this work?
thanks! it worked
-
Why doesn't this work?
with JavaScript, I'm trying to get the value of <select> and then change the value of an input. My problem is that this: function getlink() { var e = document.getElementById("percentage1"); var p = e.options[e.selectedIndex].value; if(p = "10%"){change1("link1","link1.com")}else if(p = "20%"){change1("link1","link2.com")} } doesnt return the seleced value of percentage1, instead it returns just 20% all the time... what am i doing wrong? ~ apprentice
-
how do you create a txt file?
thanks, but i finally solved all of my problems.
-
how do you create a txt file?
i actually ment, how do you read just one line and not all the lines of the txt file?
-
how do you create a txt file?
that didn't work so i'm using this $file = file("101.txt"); foreach ($file as $line_numb => $line) { if ($line_numb = 6) { echo $line; } } but how do you write a specific line and not all?
-
how do you create a txt file?
thanks!
-
how do you create a txt file?
ok, I've got another question. so i change the code. $myFile = "games/" . $add . "/" . "$add.txt"; fopen($myFile, 'x'); if(!$fh) { echo "There was an error uploading the file, please try again. redirecting....."; echo "<meta HTTP-EQUIV='REFRESH' content='5; url=/Host.php'>"; } $fh = fopen($myFile,'w'); $break = " "; $stringData = "$name" . "$break"; fwrite($fh,$stringData); $stringData = "$Author" . "$break"; fwrite($fh,$stringData); $stringData = "$Style" . "$break"; fwrite($fh,$stringData); $stringData = "$Progress" . "$break"; fwrite($fh,$stringData); $stringData = "$Program" . "$break"; fwrite($fh,$stringData); $stringData = "$Description" . "$break"; fwrite($fh,$stringData); fclose($fh); but now i want to be able to read the data, i know how to, but how can i read just one line?
-
how do you create a txt file?
i feel so stupid now..... thanks
-
how do you create a txt file?
I am trying to create a text file to keep some data, this is what i have so far..... $myFile = "games/" . $add . "$add.txt"; fopen($myFile, 'x'); if(!$fh) { echo "There was an error uploading the file, please try again. redirecting....."; echo "<meta HTTP-EQUIV='REFRESH' content='5; url=/Host.php'>"; } $fh = fopen($myFile,'w'); $stringData = "$name \n $GAname \n $Gstyle \n $Gprogress \n $Gmade \n $Gdescription"; fwrite($fh,$stringData) fclose($fh); but the problem is that it's not creating the text therefore the file cant be read. So why isn't it working? am i not creating the txt file right? please help. ~ apprentice