Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

apprentice

Members
  • Joined

  • Last visited

  1. yep, is the simplest way!
  2. thanks, am going to use tables
  3. your welcome !
  4. I never thought of that.. but is there any way just aligning it?
  5. 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'">
  6. 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
  7.    apprentice reacted to a post in a topic: Why doesn't this work?
  8. thanks! it worked
  9. 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
  10. thanks, but i finally solved all of my problems.
  11. i actually ment, how do you read just one line and not all the lines of the txt file?
  12. 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?
  13. 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?
  14. i feel so stupid now..... thanks
  15. 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.