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.

craigyVENGEANCE

Members
  • Joined

  • Last visited

  1.    craigyVENGEANCE reacted to a post in a topic: Show Div on Hover
  2.    craigyVENGEANCE reacted to a post in a topic: Show Div on Hover
  3. I wasn't using CSS and couldn't use my first method because the CMS I was using wouldn't run it for some odd reason. I've used JQuery and managed to get it working perfectly. Thanks for all your help guys!
  4. Thanks for the reply. Yeah I basically have two pictures of bulbs on top of each other and the lit one is hidden until I hover. I'll look into using JQuery if it makes things simpler
  5. Hi Guys, I've got two images I've give Div ID's to and layered them on top of each other. I've managed to use a code to hide the top DIV and show it on hover, here's the code <script> function show(id) { document.getElementById(id).style.visibility = "visible"; } function hide(id) { document.getElementById(id).style.visibility = "hidden"; } </script> <div onMouseOver="show('lit')" onMouseOut="hide('lit')"> Here's the stylesheet I use also #unlit { position:absolute; left:0px; top:0px; z-index:-1 } #lit {visibility: hidden; position:absolute; left:0px; top:0px; z-index:-1} And the HTML <div id ="unlit"> <img src = "Bulbunlit.gif"> </div> <div id='lit'> <img src = "Bulblit.gif"> </div> Now this works fine, but I need to make it so it runs of an external JavaScript file but this code doesnt seem to run like that. Can anyone help me make it JavaScript compatible so I can put it on my CMS, Thanks!
  6. Can anyone point me to a decent easy to follow tutorial on how to get rounded corner in IE. Cheers.
  7. That tutorial was exactly what I wanted. Thanks
  8. Hi, I've got a simple FAQ page set up so when you click a question the answer slides out. I was just wondering how I would make it close the opened question when you open a new one. Thanks in advance!
  9. I've decided doing this would be best, but can't figure it out. What could I add to my code so that opening a new question would close the previously opened one? Cheers.
  10. I've figured it out. Thanks guys. For anyone else who was wondering here's what I used. <html> <head> <script type="text/javascript" src="Jquery location"></script> <script type="text/javascript" src="utility.js"></script> <link rel="stylesheet" type="text/css" href="stylesheet.css" /> </head> <body> <dl class="faqs"> <dt>Question one</dt> <dd>Answer one</dd> <dt>Question two</dt> <dd>Answer two</dt> </dl> </body> </html> Then in my seperate JavaScrip that I referenced I used : $(document).ready(function() { $('.faqs dd').hide(); $('.faqs dt').hover(function(){$(this).addClass('hover')},function(){$(this).removeClass('hover')}).click(function(){ $(this).next().slideToggle('normal'); }); });
  11. I'm creating an FAQ page for my work site, and I have ALOT of questions. Instead of havign just a massive ammount of text I'd like to create something so that all the questions are clickable and when you click the answer will appear below it and then dissapear when you click again. What's the best way to go about this? Thanks in advance.
  12. That's not the effect I'm going for really. I dont want anything to appear like the lense on that example just simply when I hover over one of the target sections is enlarges.
  13. I have an image that I've been asked to make a bit interactive. It's a target with several sections and they want me to code it so that when you hover over a certain section that part enlarges and makes it easier to read. So far I've got a code that makes the entire image enlarge but I'm struggling to make only certain parts enlarge. I'm doing this on mouseover / mouseout. This is the code I'm using at the moment : <html> <head> <script language="javascript"> function fn_large() { document.getElementById('myImage').style.height = '500px'; document.getElementById('myImage').style.width ="500px"; } function fn_normal() { document.getElementById('myImage').style.height = '400px'; document.getElementById('myImage').style.width ="400px"; } </script> </head> <body> <tr><td><image id="myImage" src="g2g_target.jpg" border=1 width="400px" height="400px" onMouseover="fn_large()" onMouseout="fn_normal()"></td></tr> </body> </html>
  14. Hi, I've been asked at work to make an image interactive. It's basically a target with 8 sections and they want me to code it so that when you hover over a section, it moves upwards and is basically enlarged to make it easier to read. I was just wondering what would be the best way to do this? Thanks
  15. I have a login code and I don't understand how to get certain parts of the script. DEFINE ('DB_USER', 'YOUR DATABASE USERNAME'); DEFINE ('DB_PASSWORD', 'YOUR DATABASE PASSWORD'); DEFINE ('DB_HOST', 'localhost'); How would I find my database username, is it just my mysql login username? Is my password my mysql login password? How do I find my local host, or does that just stay the same?
  16. Can someone link me to a tutorial to create a database with mysql. I'm trying to make my site so people can sign up, log in and out etc. And I need to create a database for it, but I'm unsure how.

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.