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.

php_penguin

Privileged
  • Joined

  • Last visited

Everything posted by php_penguin

  1. Well I was experimenting with writing an ajax application, which in itself will help you write a book. Basically I was trying it with tag structures like this: <section> <page> <left> <pagename>Introduction</pagename> <pa>some text here</pa> <subtitle>Who should read this book?</subtitle> <pa>bla bla bla</pa> </left> <right> <code type="php">php code displays here</code> </right> </page> </section> and so on. it works well in firefox (see upload...), but if it doesn't work in IE i will just use standard tags with classes applied. book.html
  2. Hey just wondering a couple of things really... say i have this code: (minus head) <body> <jiggle>some text</jiggle> </body> that will display properly in FF. I can even make it a block element, apply padding + margins, change the colours... just like a regular div. I was just wondering wether the same holds true for IE7? I don't have access to a Windows PC (running Ubuntu) at the moment, so if anyone could do a quick test, that would be great. For further kicks, try and access the element using javascript. (getElementsByTagName("jiggle")
  3. crazy idea here, but could you use the cascading menu using list items, to contain the page details, instead of a submenu admittedly this would be onhover rather than onclick, but it could work...
  4. me too also, going under the same name there.
  5. very nice. each div will have a "goto" position, in pixels. This may have been worked out before, or on the fly... it may even be done by multiplying the item index by the box width. This goto position is then animated to from the current position, and the speeds are tweened, to give the acceleration and deceleration effects. It would be moderately easy to code, and yes it does look ****ing cool.
  6. IE5 has a near 0% user base... Maybe in 500 users will be using IE5.
  7. Jay-S: it does say it his first attempt at this, so a lack of images or standard-practice code is hardly fair comment.
  8. a couple of notes: most make no difference, other than css filesize you can use "margin: auto;" rather than "margin-left: auto; margin-right: auto;", its shorter and does exactly the same in all browsers. you can use jsut "background" rather than the full "background-color" you can use short hex-codes, so "#FFFFFF" becomes "#FFF", similiarly "#0088FF" becomes "#08F". try not to use non-hex or non-rgb codes, keywords such as "white" occasionally look different per browser, although only by a couple of points. This is more of a problem for less defined ones, such as aliceblue It is a good idea to set a font-family in the body declaration, as a fallback position. This will not affect font used in table elements, but will do for divs. Very well done for a first attempt, lets see what happens when you start applying some design to it! Next you should focus on doing more advanced layouts - a good source of inspiration is other sites. Look at some sites and see if you can mimic there own page structure, without looking at the source code - it really helps you find out where your knowledge gaps are
  9. ok well heres how you might do it in PHP: <?php $image_dir = "/path/to/images/"; $good_types = array("jpg","jpeg","gif","png"); // open and read the directory. if( $open_dir = opendir( $image_dir) ) { while( ($file = readdir($open_dir)) !== false ) { // get extension of image $file_info = pathinfo($file); $file_type = $file_info['extension']; if( in_array( $file_type, $good_types ) ) { $image_list[] = $file; } } } $selected = $image_list[ rand( 0, count($image_list) ) ]; print $selected; ?> just change the top two variables to something (good_types might not need to change) Of course, if you don't have PHP on your server, here is a javascript solution (less dynamic, involves editing script to include images): <script language="JavaScript" type="text/javascript"> var ic = 10; var images = new Array( ic ); // the number inside (ic) is the number of images in the list. image[] = "one.jpg"; image[] ="two.png"; image[] = "three.gif"; image[] = "four.jpg"; image[] = "five.png"; image[] = "six.jpeg"; image[] = "seven salty seamen.png"; image[] = "ate.gif"; image[] = "nein.jpg"; image[] = "ten.png"; var randnum = Math.round( Math.random(ic - 1) ); var chosen_one = image[ randnum ] // do whatever with chosen_one now. </script> the javascript is the worst solution of the two. With PHP you could go further, and make it open the image and output it, so you could simply do : <img src="randimg.php?from=/images/homepage/" /> to get a random image displayed. However, i will leave it to you to figure this out (or someone else).
  10. we also get loads of dolies from liverpool + manchester given to us... its a wonderful christmas present... aberystwyth is a very nice town, i spent a couple of summers there when my parents owned a sports shop there (freedom i tink it was called, it was opposite the wetherspoons)
  11. quite nice overall, the reds and oranges make it feel quite proffesional, like a law firm or sommat haha... Is there a reason why the menu/header doesn't span the whole width (viewed in IE7)? Also, not sure what sort of logo the dying leaf is... just doesn't conjure up good imagery for me really 7/10
  12. not a big enougfh palette, and the font doesn't really fit the overall theme. try arial or trebuchet? over than that, quit nice... 6/10
  13. Hello there, I'm from Wales (England thinks we are UK but we dont...) If you have any questions about PHP/MySQL dont hesitate to ask.
  14. well, thats very comprehensive.. very good for stalkers at least CSS is strange to memorize... once you have it, you don't remeber why or when you didn't...
  15. gah... way too much text. Try and keep questions condensed to about 5 lines, excluding source code.
  16. google adwords is the best way for many ecommerce sites. my da spends about 1500 a month on adwords, and that translates into approx 15000 revenue. The average order is about £20, so that is approx 750 sales a month. Considering the avg click-to-sale is 6%, that is well over 12500 unique viewers a month. Admittedly this is an established site, and it costs a fair whack to get hese clicks, but it is not too difficult.
  17. i know this sounds FUBAR but paint shop pro 7 is the best one, far outdoing any of the Corel PSP's
  18. well then you could do something like creating a div element, and setting its style to "display: inline" in the tag itself, and then in the stylesheet you are checking for, set it to be block type. somethng like this: <div style="display: inline" id="sscheck"> </div> /* in stylesheet */ div#sscheck { display: none; } /*in script */ if( document.getElementById("sscheck").style.display == "none" ) { // the stylesheet is in use }
  19. hi there, well done on getting a job at least
  20. heck i know about web rage... i kicked a whole through my wall (plasterboard) waiting for my internet to speed up... spent the rest of the day fixing it so my rage was solved at least.
  21. 1 in 20 is top 5% lol... Anyway , i got BCDc so just trying to get hold of th efrickin universities!
  22. Seems from that, that it is only in place for a few courses or schools or something.... There is certainly nothing i've heard in my own speel.
  23. A* ? Is he doing A levels? because there aren't any A* grades in the UCAS points system... 240 out ot 300 is an A, but there is nothing beyond that.
  24. Wow... combining the two things i hate most in the world. Bollywood and Michael Jackson.
  25. I'm doing a gap year, just working not travelling. If anyone has a job going ? lol I'll post my results here if they aren't too bad... And then i'll be out getting bladdered - it isn't results night if you dont

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.