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.

headintheshed

Members
  • Joined

  • Last visited

  1. Hi Im trying set up a page where users can send their email addy via PHP It works fine when I use one of my own addys (info@aardesign.co.uk) but when I test it on other addys it doesn't work This is the HTML for the page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">'>http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>lime_home</title> <link href="limestylesheet.css" rel="stylesheet" type="text/css" media="screen" /> </head> <body> <div id="background"> <div id="peel"><img src="grain.png" width="800" height="500" border="0" /></div> <div id="fresh"><img src="fresh.png" alt="logo" width="570" height="150" border="0"/></div> <div id="soon"><img src="comingsoon.png" width="500" height="100" border="0"/></div> <div id="emailtext">Submit your email to be notified when we go live</div> <div id="bar"><img src="middlebar.png" width="1000" height="68" border="0"/></div> <div id="emailsend"> <form action="feedback.php" method="post"enctype="multipart/form-data"> <input type="text" name="comments" size="50"> <input type="submit" class="submitButton" value="Submit" /> </p> </form> </div> <div id="maintext">Lime4 is a fresh company providing clear thinking and high quality expertise in project management and the development of sustainable solutions. Whether through project development, production of business cases and feasibilities, or more specifically related to the blossoming green and environmental sector.</div> <div id="limelogo"><img src="limelogo.png" width="170" height="135" border="0"/></div> <div id="address">Studio B, Derwentside Business Centre, Consett Business Park Consett, DH8 5BP</div> <div id="details">Phone : 01207 693 913 Mobile: 07729 327 323 e-mail: chris@lime4.co.uk</div> </div> </body> </html> This is the PHP which it is linked to <?php $comments = $_POST['comments']; $to = "info@echographics.co.uk"; $re = " New website email feedback"; $msg = $comments; mail ( $to, $re, $msg ); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <h1>Thanks for your email address, we will be in touch.<h1> </body> </html> This is the page in question http://www.aardesign.co.uk/lime/index.html Can anyone help ? Thanking you. Alan.
  2. Hi can you take a look at a site Im working on? Im wanting to make the black area scrollable (a scrollbar on the righthand side). (A sort of webpage within a webpage!) The site isnt finished yet thats why there is no content!! http://www.aardesign.co.uk/slideshow/index.php Is there any way I can do this? Also is there any way I can make the background slideshow images fade in and out of each other? Preferably without using Jquery? Ive found this piece of js code : fadeduration 1000, but Im not sure where it goes. Thanking you in advance. Alan.
  3. rallport -Thanks for that, in your opinion do you think I should abandon the PHP/JS and use the Jquery method instead?
  4. Hi, Ive got a slideshow which is working fine. However I would like the images to fade in and out of each other. I have found this js code but Im not sure where exactly it goes. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript" src="fadeslideshow.js"> /*********************************************** * Ultimate Fade In Slideshow v2.0- © Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more ***********************************************/ </script> <script type="text/javascript"> var mygallery=new fadeSlideShow({ wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow dimensions: [250, 180], //width/height of gallery in pixels. Should reflect dimensions of largest image imagearray: [ ["http://i26.tinypic.com/11l7ls0.jpg",'>http://i26.tinypic.com/11l7ls0.jpg", "", "", "Nothing beats relaxing next to the pool when the weather is hot."], ["http://i29.tinypic.com/xp3hns.jpg",'>http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave",'>http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"], ["http://i30.tinypic.com/531q3n.jpg"],'>http://i30.tinypic.com/531q3n.jpg"], ["http://i31.tinypic.com/119w28m.jpg",'>http://i31.tinypic.com/119w28m.jpg", "", "", "What a beautiful scene with everything changing colors."] //<--no trailing comma after very last image element! ], displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false}, persist: false, //remember last viewed slide and recall within same session? fadeduration: 500, //transition duration (milliseconds) descreveal: "ondemand", togglerid: "" }) var mygallery2=new fadeSlideShow({ wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow dimensions: [250, 180], //width/height of gallery in pixels. Should reflect dimensions of largest image imagearray: [ ["http://i26.tinypic.com/11l7ls0.jpg", "", "", "Nothing beats relaxing next to the pool when the weather is hot."], ["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"], ["http://i30.tinypic.com/531q3n.jpg"], ["http://i31.tinypic.com/119w28m.jpg", "", "", "What a beautiful scene with everything changing colors."] //<--no trailing comma after very last image element! ], displaymode: {type:'manual', pause:2500, cycles:0, wraparound:false}, persist: false, //remember last viewed slide and recall within same session? fadeduration: 500, //transition duration (milliseconds) descreveal: "always", togglerid: "fadeshow2toggler" }) </script> THIS IS THE CODE FOR MY SLIDE SHOW: <?php $imageDirectory = "images"; $interval = 5; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Max's Slide Show</title> <link href="nrg_stylesheet.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> var picn=0; var picList = new Array; var actImg = new Image(); <?php if ($handle = @opendir($imageDirectory)) { $i = 0; while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { $path = $imageDirectory; if(is_file($path.DIRECTORY_SEPARATOR.$file)) { $info = $path_parts = pathinfo($file); if ( (strtolower($info['extension']) == 'jpg') || (strtolower($info['extension']) == 'jpeg')) { $file = addslashes($file); echo "picList[$i] = '$path/$file';\r\n"; $i++; } } } } } ?> function setCountDown () { actImg.src = picList[picn++]; document.getElementById("pic").src=actImg.src; if (picn>=picList.length) picn=0; setTimeout ( "setCountDown()", <?php echo ($interval*1000); ?> ); } </script> </head> <body onload="setCountDown();"> <div id="container"> <div id="header"><div id="header_left"></div> <div id="header_main"></div><div id="header_right"></div></div> <div id="content"> <img src="<?php echo $path.'/'.$file; ?>" alt="pic" id="pic" border="1" /> </div> <div id="footer"><a href="http://www.phpf1.com" target="_blank">Powered by PHP F1</a></div> </div> Can anyone help please ?? Thank you. Alan.
  5. Hi the lad Im working for wants a slideshow for the background of his site. Ive got the slide show up and running. Its php and js. Ive tried to attach the php file to the css stylesheet as the background property but it doesnt work. Any suggestions. Thanks. Shedman.
  6. I found this and its just what Im looking for. Its not html5 but it is really simple to do - even I sussed it out!!! http://www.phpf1.com/download.html?item=16
  7. Hi Ive been asked to do a site with changing images on the home page. The images have to fill the whole page and change every 30 seconds or so, with no user interaction - IE no arrows etc. Something along the lines of this https://www.wetransfer.com/ Im familiar with javascript and php. Or is the a way to do it with HTML 5 ? Thanks Alan.
  8. Thanks for that webdesigner93. Ive tried it with the additional code and it works fine.
  9. Thats fine, but how do I adjust the code in order to make it work?
  10. Hi Im learning about PHP and Im teaching myself from a book. Im on to the section about cookies. This is the code I copied from the book: <?php $user = $_POST['user']; $color = $_POST['color']; $self = $_SERVER['PHP_SELF']; if (($user != null) and ($color != null)) { setcookie( "firstname", $user, time()+36000); setcookie( "fontcolor", $color, time()+36000); header( "Location:getcookie.php"); exit(); } ?> <html><head><title>Set Cookie Data</title></head> <body> <form action="<?php echo($self);?>" method="post"> Please enter your first name: <input type="text" name="user"><br><br> Please type in your favourite font color: <input type="radio" name="color" value="#FF0000">Red <input type="radio" name="color" value="#00FF00">Green <input type="radio" name="color" value="#0000FF">Blue <br><br><input type="submit" value="Submit"> </form> </body> </html> This is the code for the second part: <?php $user = $_COOKIE['firstname']; $color =$_COOKIE['fontcolor']; ?> <html><head><title>Get Cookie Data</title> <style type="text/css"> body{color: <?php echo( $color );?>} </style> </head> <body> <h1>HELLO<?php echo ($user);?>!</h1> </body> </html> The first page works but when input the data and press "Submit" I get this:(Please see attachment for screen shot) can anyone see where I am going wrong?? Thanking you in advance ShedHead.
  11. Thank You for all your comments. ShedHead.
  12. Hi, apart from my laptop which is WiFi enabled, Ive also got a table top computer (XP) which is not WiFi enabled. My router is Netgear. Im thinking of buying this adapter. Will this enable me to connect my table top to my router? I would appreciate any constructive advice. Thanking you, ShedHead.
  13. Right, Im in the Edit Themes/Appearence/Editor/StyleCSS. Correct me if Im wrong but is it just a case of changing the CSS rules. Also if I want to put an image in the header do I just link it to an image in the hosting server?

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.