HTML - Rollover Background Change?
Hello all!
I have a question that I'm hoping someone can help me with... I want to create a rollover image that behaves very specially. I have a smaller image that is like the "enter button" for the site. I want it to work like this: When you mouse over the "enter button" it changes the background image like a rollover. It doesn't have to actually change the background image... I will be happy if it just makes a rollover and the second image is centered on the page like the background image. I basically want it to be that when you mouse over the enter button it looks like the background image changes. Since the enter button is small and the background image is large, it doesn't look right when I do it. Will someone please tell me if you know a way to do this? Thank you so much! I will really appreciate it. Shei <3 Similar Tutorialsi am making a website for my webdesign/JAVA class. On my site i embedded a Left margin sliding menu from http://www.dynamicdrive.com/dynamici...lideinmenu.htm I want to make it so that when i rollover a link in the menu, the link changes from its english text to italian. I know for a fact that it is possible to alter the properties of the links inside the menu when i inserted into my <head>: Quote: <style fprolloverstyle>A:hover {color: #FFFF00} a {text-decoration:none} </style> Im new to webdesign, help would be greatly appreciated! Hello, I have hyperlinks in a table row (each to a cell). I would like the hyperlinks to change font colour from white to yellow, and the cell backgrounds to change from black to blue upon rollover. Is this possible without using custom buttons? Thanks for your help. I have a menu bar where i place the script for RollOver Background. But when i upload it, second background doen't load untill i place the cursor on tab. Even After placing the cursor it takes around 10 second to load. Note: this problem is not at locally. As i upload it then it comes. Even i have place the "onLoad" in body tag. Code is below: <table width="685" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="96" height="29" align="center" background="images/tab_a_01.jpg" onmouseover="this.style.background='url(images/tab_a_02.jpg)'" onmouseout="this.style.background='url(images/tab_a_01.jpg)'" valign="absmiddle" style="background-repeat"><div style="margin-top:10px"><a href="#" class="tab"><b>Home</b></a></div></td> <td width="10"> </td> <td width="96" height="29" align="center" background="images/tab_a_01.jpg" onmouseover="this.style.background='url(images/tab_a_02.jpg)'" onmouseout="this.style.background='url(images/tab_a_01.jpg)'" valign="absmiddle" style="background-repeat"><div style="margin-top:10px"><a href="#" class="tab"><b>Join Today</b></a></div></td> <td width="10"> </td> <td width="155"> </td> <td width="10"> </td> <td width="96"> </td> <td width="10"> </td> <td width="96"> </td> <td width="10"> </td> <td width="96"> </td> </tr> </table> I am doing a little updating on one of my sites, and I found a nice template to work with. The problem I have with it is, it is a jpeg and when I view it with the broswer the little save-print-view icon pops up and looks like junk. Is there any way to disable the {template?} or whatever so that it works without this happining? Thanks, Majik hi guys. i want to change the background image of a div when the user selects a football team from a dropdown select box. here's my code: Code: function changeDivImageArsenal() { var imgPath = new String(); imgPath = document.getElementById("right_box").style.backgroundImage; if(imgPath == "url(images/blackburn.jpg)" || imgPath == "") { document.getElementById("right_box").style.backgroundImage = "url(images/arsenal.jpg)"; } } function changeDivImageBlackburn() { var imgPath = new String(); imgPath = document.getElementById("right_box").style.backgroundImage; if(imgPath == "url(images/arsenal.jpg)" || imgPath == "") { document.getElementById("right_box").style.backgroundImage = "url(images/blackburn.jpg)"; } } thats fine and works if i just have 2 different images. but if i want to have 20 different selections, what do i write in the 'if' statement? thanks in advance I'm trying to make an image appear/change in response to a rollover, but the image is not in the same table as the rollover. I'm trying to redesign the header of my website, and have come up with this draft: bottleweb.org/test I want an image to appear in between the "BOTTLEWEB.ORG" text and the buttons. If for example I move my mouse over the 'forum' button, I want an image corresponding to 'forum' to appear in between the buttons and the "BOTTLEWEB.ORG" test. Is this possible? I've seen it done, but probably not in html. Every time the page is reloaded, the background colour within certain areas of the page will change to one of a series of pre-set colours. Usually this is all background divs or table cells that have been earmarked for this colour change, but how on earth do you set that up in html? Any ideas? hi; i want to create something like this http://www.microsoft.com/en/us/default.aspx need to do exactly as in this site how can i do that.... ; any script (when mouse is over needs to change the iframe....) Highlights Latest releases Using your computer on my 'past layouts' section i did a rollover image for each one but the hand cursor shows when you move the mouse over the image, how do i do it so it's just changes pics without changing cursors? I'm using the DOM rollover script, but I have no idea how to put text over it. Is it even possible? I'd appreciate any help. Thanks! Hi, if anyone would be able to help me with this issue im having doing an image rollover it would be great. Thank you Hello. Please could you look at this code for me and tell me what I have done wrong? I can't get it to change the picture on rollover. Thank you Code: <div style="background-color:#ff0099; height:25px;width:956px;float:left;""> <a href="http://www.google.co.uk" ONMOUSEOVER='rollover.src="http://farm5.static.flickr.com/4145/4983786279_f55ce0b9bb_m.jpg"' ONMOUSEOUT='rollover.src="http://farm5.static.flickr.com/4145/4983658949_91e6ffdc21_m.jpg"'> <img src="http://farm5.static.flickr.com/4145/4983658949_91e6ffdc21_m.jpg" NAME="rollover" width="236" height="25" border="0"> </a> <a href="http://www.google.co.uk" ONMOUSEOVER='rollover.src="http://farm5.static.flickr.com/4103/4984384100_9249a58aa3_m.jpg"' ONMOUSEOUT='rollover.src="http://farm5.static.flickr.com/4149/4984257696_f1fdb7cd27_m.jpg"'> <img src="http://farm5.static.flickr.com/4149/4984257696_f1fdb7cd27_m.jpg" NAME="rollover" width="236" height="25" border="0"> </a> <a href="http://www.google.co.uk" ONMOUSEOVER='rollover.src="http://farm5.static.flickr.com/4083/4984384182_ecc8cd023c_m.jpg"' ONMOUSEOUT='rollover.src="http://farm5.static.flickr.com/4112/4983659827_547410d1ed_m.jpg"' target="_blank"> <img src="http://farm5.static.flickr.com/4112/4983659827_547410d1ed_m.jpg" name="rollover" width="236" height="25" border="0"> </a> <a href="http://www.google.co.uk" ONMOUSEOVER='rollover.src="http://farm5.static.flickr.com/4144/4983786159_e7730fa193_m.jpg"' ONMOUSEOUT='rollover.src="http://farm5.static.flickr.com/4150/4983658139_5b6796a521_m.jpg"'> <img src="http://farm5.static.flickr.com/4150/4983658139_5b6796a521_m.jpg" NAME="rollover" width="236" height="25" border="0"> </a> </div> I know how to do a rollover evect with js but I was wondering if it is possible to do with css. Thanks for any help you can give me! Hey - I'm in the middle of making a website for our family villa, and was wanting to put on a picture of the floor plan. I thought it'd be a good idea if when you mouse over a room, a big picture of the room shows up - kind of like an image map, only you wouldn't on the room, and the photo would show up over the floor plan (if that makes sense!) Can anyone tell me how to do this please? Thanks!! Hello everybody. I was wondering if you could help. Firstly I'm a noob to css/html. I've come stuck. I've created a site in illustrator imported into dreamweaver (I know this isn't the right way but it's easier for me at the moment, sort of) and added lightbox 2 to it. It's been smooth sailing and lightbox works great. This is the code I see: (note I've just put the code for the image I want to use) <div align="center"><a href="images/locogsequins copy.jpg"rel="lightbox"><img src="images/index_03.jpg" width="262" height="188" Messy I know , but it's working for me so far. However, on top of having the lightbox effect I would like to add a rollover effect. So when a viewer lands on the page they will see everything in black and white, when they roll over an image it turns to colour. The code I've found is <div><img src="images/locogsequins_bw.jpg" onmouseover="this.src='images/locogsequins copy.jpg'" onmouseout="this.src='images/locogsequins_bw.jpg'"> which works. (I've tested via preview in DW) My question is where do I insert this into the earlier code so they work together? I'd very grateful for any help. Thanks x Is there a way to code a thumbnail so that onMouseover a larger version opens in a separate window and onMouseout the window automatically closes? I'm developing a web form for ordering display panels and there will be several catagories for the user to choose from each containing multiple selections. Something like this would aid the user by not forcing them to constantly close windows while making their choices. I'm not sure whether this would be html or CSS.. but does anybody know how to get rollover text to popup using html or CSS like I have circled in this screenshot?: http://i134.photobucket.com/albums/q...eenshot_03.jpg Any help is greatly appreciated. I have already posted rollover threads, and my problem was solved. However, as I was building my online website, I realised that an end-user has to wait for music files to buffer and load before the sound actually plays. Basically, my rollover is this: Code: <TD ROWSPAN="1" COLSPAN="1" WIDTH="156" HEIGHT="156"> <a href="javascript:void(0);" onMouseOut="MM_swapImgRestore();stopSound(0);" onMouseOver="MM_swapImage('Image9','','musicplaying.gif',1);playSound(0);"><img src="piece1hit.jpg" name="Image9" width="156" height="156" border="0"></a></TD> - This plays music and an animation when a mouse is hovered over the original picture. My problem: when the mouse is hovered over the image, it takes about 30 seconds for the music to start playing as it is loading. To solve this, I want a line of text to appear when the mouse hovers over the image which lasts about 30 seconds, saying: "Please wait as music buffers." I have a line of code in mind: [code]<p class="time" begin="10" dur="5">text</p>[code] I also have all of the necessary coding to activate this code at the top of my page. But my question is: how do I put the timed writing, into the mouseover code? Any suggestions would be greatly appreciated. <TR> <TD ROWSPAN="1" COLSPAN="1" WIDTH="156" HEIGHT="156"> <A HREF="#" onMouseOver="playSound(0)""if(document.images) document.BACKGROUND2WHITE0.src='piece1.jpg';" onMouseOut="stopSound(0)""if(document.images) document.BACKGROUND2WHITE0.src='piece1.jpg';"> This code was written to play a music file and change the image while the mouse hovers over it, and when the mouse is taken off, the music stops and the image reverts to its original picture. There is code before this which stores the music file. My problem: When i put the mouse over it, the music plays but the image doesn't change. I'm an amateur at HTML so someone please tell me, what am I doing wrong? Hi, I'm Sam. New to the forum and looking for some advice!! Ok, I have - after many failed attempts - worked out how to do text to text rollovers (ie: I highlight the word Molly anda pops up appears with "Da doggy!" what I would really like to do, but I'm not sure of I can in blogger, is have the underlined word pop up an image when the mouse is rolled over. Is this possible? Any help would mean you would be worshipped forever (or at least until I have got used to doing it and it becomes second nature - hee hee!!) |