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.

CarloBenno

Members
  • Joined

  • Last visited

Everything posted by CarloBenno

  1. Thanks Sash, Ive been playing around with it and seem to have it working now, although I will try out the media queries you posted. Thanks for your help dude.
  2. Hi people, Ive never designed a website for moble devices before or one that uses a full blown background image. So please go easy on me.. Anyway, I have a full background image that i want to display on my site. Its working fine on all desktop browsers however when I test it on my iphone and ipad the image is slightly broken at the top and at the bottom. here is my (at the moment) very basic css code: body { font: normal .80em arial, sans-serif; color: #DDD; background-attachment: fixed; background-color: #FFF; background-image: url(../images/back.jpg); background-repeat: no-repeat; background-position: center; } Really gratefull if anyone can tell me what im doing wrong here. Thanks in advance.
  3. Sorry just noticed a slight error on my first post, i meant to say this: <label><input type="radio" name="subscription_status" value="radio" id="subscription_status_0")>Subscribe</label> (This selection is for users to Subscribe to the service) and next i have: <label><input type="radio" name="subscription_status" value="radio" id="subscription_status_1")>Unsubscribe</label> (This selection is for users to Unsubscribe to the service)
  4. At the moment I just a have simple alert message because i not sure how to write the code for the 2nd option (An unsubscribe message). On the form I have: onClick="MM_popupMsg('Thank you for subscribing!')" and in the head i have this simple code: <script type="text/javascript">function MM_popupMsg(msg) { alert(msg);}</script> But as you can see this code is kind of useless because if the user checks the other option (unsubscribe) and submits the form, on click they get the message "Thank you for subscribing!". I hope this makes sense, thank you for your interest.
  5. Hi guys, So i got this problem with my form. It's a simple form for subscribing to a part of my website. Basically the form consists of 2 input fields, one is 'Name' and the other is 'Email Address' and the submit button is an image. The problem I have is at the bottom of my form I have two options: <label><input type="radio" name="subscription_status" value="radio" id="subscription_status_0")>Subscribe</label> (This selection is for users to Subscribe to the service) and next i have: <label><input type="radio" name="subscription_status" value="radio" id="subscription_status_1")>Subscribe</label> (This selection is for users to Unsubscribe to the service) What i want to do is if the user selects the "Subscribe" option and then his submit I want a message to popup saying something like "Thank you for subscribing". However if the user selects the "Unsubscribe" option and then hits submit I want a message to popup saying something like "Your subscription has been canceled". At the moment I can only work out how to get one message to popup when you hit the submit button. I need to understand how i can display the right message for the right selection. I hope someone can help us out on this one, I'm really new to java script so please go easy on me! Many thanks.
  6. Hi guys, Please can some one help me out here! I'm slowly going crazy. I'm new to java script, but I'm sure there is a way to do this. I have some code for a digital clock and all is well and good with it. No problems. However I need to repeat or modify this code two more times, so I have a total of 3 working digital clocks. In addition to this I need the other two clocks to display different times. So for example, the 1st clock is set to New York time, the 2nd clock is set to London time and the 3rd clock is set to Hong Kong time. I think this can be done with offsetting the time, but I'm not sure where to put the command and how to write it to my code properly. Also when I try to add the second clock, the first one disappears! I know there is also another way of doing this with php, but Ive spent all day trying to get this to work just with java, so it would be nice to get this working by amending the code slightly. I hope someone can help me out, Cheers people, here's the code: <head> <title>Slowly Going Insain</title> <style type="text/css"> .clockStyle{ background-color:#FFF; padding:5px; color:#F00; font-family:"Times New Roman", Times, serif; font-size:10px; font-weight:normal; letter-spacing: 2px; display:inline; } </style> </head> <body> <h2>Global Time...</h2><br/> <table width="380" cellspacing="2" cellpadding="2"> <tr> <th width="35%" align="left" valign="top" scope="col">London</th> <th width="34%" scope="col">New York</th> <th scope="col">Hong Kong</th> </tr> <tr> <td height="20" align="left" valign="top"><div id="clockDisplay" class="clockStyle"></div></td> <td align="left" valign="top"> </td> <td align="left" valign="top"> </td> </tr> </table> <script type="text/javascript" language="javascript"> function renderTime(){ var currentTime = new Date() var diem = "AM"; var h = currentTime.getUTCHours(); var m = currentTime.getUTCMinutes(); var s = currentTime.getUTCSeconds(); if (h == 0) { h = 12; } else if (h > 12) { h = h - 12; diem = "PM"; } if (h < 10) { h = "0" + h; } if (m < 10) { m = "0" + m; } if (s < 10) { s = "0" + s; } var myClock = document.getElementById('clockDisplay'); myClock.textContent = h + ":" + m + ":" + s + " " + diem; myClock.innerText = h + ":" + m + ":" + s + " " + diem; setTimeout('renderTime()',1000); } renderTime(); </script> </body> </html>
  7. Thanks man, I used you amended code and made a few changes and so far it seems to be working more or less ok. I moved the code into the project that I'm working on and Dream Weaver is bringing up some warnings about possible errors with IE version 6. I'm gunna mess about with this for a bit longer today and will let you know if I can get it working %100. In the mean time, I just wanna give ya a missive thank you for you time and for helping me out. Cheers man. Will keep you posted on my progress.
  8. Arhhh...... man, this is driving me crazy, when i test it, it still only displays the one clock, no matter what i do to the code! Maybe this has something do do with the java script instead? Any thoughts? Cheers man.
  9. Thanks for the link dude, but its still not working. I believe it has to be a "Div ID" so the java script works on the page. What about if i make 3 different Div ID's? Would that work, and how would i lay it out? Or another option I tried but, again maybe I'm missing something is putting the code into table within the Div, if you think this would work can anyone post some code on the best way to do it? Ive tried this already but i keep getting the same results, as i said i maybe missing something simple here. Cheers guys.
  10. Hi people, This is my first post here, hope someone can help me out. Basically I want to display 3 analog clocks besides each other, each clock showing a different time. I'm not sure what I'm doing wrong but I can only get 1 clock to appear no matter how I put the code together. Its been a while since Ive used CSS, so maybe I'm forgetting something here. Anyway, this is the code for just the one analog clock, i need to know how i can modify the code to add the other 2 analog clocks along side it. Much thanks in advance. <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>clock_v2</title> <link href="style.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js/swfobject.js"></script> </head> <body> <div id="devAnalogClock"></div> <script type="text/javascript"> var flashvars = { clockSkin: 'media/skins/skin0022.png', arrowSkin: '5', arrowScale: '50', UTCTime: '<?php echo gmdate('H:i:s'); ?>', timeOffset: '3600', widgetUrl: 'http://www.xorbin.com/' }; swfobject.embedSWF( 'media/devAnalogClock.swf', 'devAnalogClock', '80', '80', '8', 'media/expressInstall.swf', flashvars, {scale: 'noscale', wmode: 'transparent'} ); </script> </body> </html>

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.