-
-
-
Show Div on Hover
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!
-
Show Div on Hover
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
-
Show Div on Hover
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!
-
Rounded Corners
Can anyone point me to a decent easy to follow tutorial on how to get rounded corner in IE. Cheers.
-
FAQ Slider Problem
That tutorial was exactly what I wanted. Thanks
-
FAQ Slider Problem
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!
-
FAQ Page Help
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.
-
FAQ Page Help
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'); }); });
-
FAQ Page Help
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.
-
Image Javascript Help
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.
-
Image Javascript Help
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>
-
Interactive Image
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
-
Database/login code help
Ok thanks
-
Database/login code help
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?
-
Tutorial request - Database
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.