HTML - Roll Over Problems
Okay, so all the roll overs work in firefox but for some reason the last roll over doesnt in safari.. The links one.. Ill high light the one im having problems with in the coding.. help would be greatly appreciated. This is one of my first web sites so any pointers to clean up the coding would help 2.
<html> <head> <title>ODG | Graphic Design </title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta name="keywords" content="ODG,, design, graphic design, graphic designers, branding, corporate identity, logos, logo design, packaging, packaging design, wine label, wine label design, brochures, brochure design, posters, poster design, stationery, stationery design, web, website, website design, illustration"> <meta name="description" content="ODG creates successful design solutions for logos, identity, websites, print, signage and packaging."> <meta name="robots" content="all"> <meta http-equiv="expires" content="0"> <meta http-equiv="Cache-Control" content="no-cache"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="imagetoolbar" content="no"> <link rel="stylesheet" type="text/css" href="styles.css" media="screen"> <script type="text/javascript" src="js/swfobject.js"></script> <CSSCRIPTDICT import> <SCRIPT type="text/javascript" src="GeneratedItems/CSScriptLib.js"></SCRIPT> </CSSCRIPTDICT> <CSACTIONDICT> <SCRIPT type="text/javascript"> <!-- <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </SCRIPT> </CSACTIONDICT> <style type="text/css"> <!-- body { background-image: url(GRAPHICS/bg.jpg); } #Layer1 { position:absolute; left:3px; top:34px; width:1245px; height:20; z-index:1; background-color: #333366; } h2 { font-family: Eurostile; color: #ff6633; left-padding:20px; margin-left:40px; margin-top:15px; } h4 { font-family:Eurostile; font-size:14px; margin:10px; } #Layer2 { margin:auto; top:109px; width:611px; height:126px; color: #ff6633; } .style1 {font-family: "Times New Roman", Times, serif} #Layer3 { position:absolute; left:588px; top:283px; width:364px; height:326px; z-index:1; } --> </style></head> <body onLoad="preloadImages();MM_preloadImages('GRAPHICS/button1_down.jpg')" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0"> <div id="table" align="center"> <table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#333333"> <tr> <td width="760"> <table width="629" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="760"><a href="index.html"><img src="GRAPHICS/logo_top.jpg" alt="ODG Graphic Design" title="Ozar Design Group" height="20" width="760" border="0"></a></td> </tr> </table> </td> </tr> </table> <table width="760" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="760"> <table width="760" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="151"><a href="index.html"><img src="GRAPHICS/logo_bottom.jpg" alt="BMD Graphic Design - Adelaide, Gold Coast, Australia" title="Brenton Murray Design" height="90" width="150" border="0"></a></td> <td width="609"> </td> </tr> </table> </td> </tr> </table> <table width="760" height="" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000"> <tr> <td width="150" height="0"> <table width="150" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF"> <tr> <td valign="top" bgcolor="#F7F7F7" width="150"><table border="0" cellspacing="0" cellpadding="0"> <tr> <td><a href="www.odg.com/logos" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('logos','','GRAPHICS/button1_down.jpg',1)"><img src="GRAPHICS/button1_up.jpg" name="logos" width="150" height="25" border="0"></a></td> </tr> <tr> <td><a href="www.odg.com/web" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('web','','GRAPHICS/button2_down.jpg',1)"><img src="GRAPHICS/button2_up.jpg" name="web" width="150" height="25" border="0"></a></td> </tr> <tr> <td><a href="www.odg.com/web" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('graphics','','GRAPHICS/button3_down.jpg',1)"><img src="GRAPHICS/button3_up.jpg" name="graphics" width="150" height="25" border="0"></a></td> </tr> <tr> <td><a href="www.odg.com/about" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('about','','GRAPHICS/button4_down.jpg',1)"><img src="GRAPHICS/button4_up.jpg" name="about" width="150" height="25" border="0"></a></td> </tr> <tr> <td><a href="www.odg.com/links" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('links','','GRAPHICS/button5_down.jpg',1)"><img src="GRAPHICS/button5_up.jpg" name="links" width="150" height="25" border="0"></a></td> </tr> </table> </tr> </table> <table border="0" cellspacing="0" cellpadding="0 width="100%"> <tr valign="top"> <td></td> </tr> </table></td> <td width="610"><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="610" height="125"> <param name="movie" value="GRAPHICS/flash.swf"> <param name="quality" value="high"> <embed src="GRAPHICS/flash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="610" height="125"></embed> </object></td> </tr> </table> <table width="760" height="0" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="380" valign="top" bgcolor="cccccc"> </td> <td width="380" valign="top" bgcolor="cccccc"> </td> </tr> <tr> <td valign="top" bgcolor="#FFFFFF"> <h2> ODG Graphic Design </h2> <h4>OGD offers a full graphic design service. We use the latest technology to create a professional look for your organization. Whether you are a new company just starting out or if you are a well established company with elaborately branded identity, we can help tie all of your materials together. We suggest that all of your marketing materials are easily recognizable as your company. We offer a wide range of services including: <ul> <li>Logo Design</li> <li>Web Design</li> <li>Motion Graphic Design </li> <li>Flyers</li> <li>Signs and Banners </li> <li>Photo Retouching </li> <li>Brochure Design</li> <li>Newsletters</li> <li>Illustrations</li> <li>Custom Artwort</li> <li>and much more </li> </ul> </h4> </td> <td valign="top" bgcolor="#FFFFFF"><table width="380" height="374" border="0" cellpadding="0"> <tr> <td ><img src="GRAPHICS/markhappy.jpg" width="369" height="274"> <h4>Call today for a free consultation and estimate or just a chat. <a href="mailto:c_ozar@yahoo.com">Contact Us</a> </h4></td> </tr> </table></td> </tr> </table> <table width="760" border="0" cellspacing="0" cellpadding="10"> <tr> <td class="footer">© ODG Graphic Design </td> </tr> </table> </div> </body> </html> Similar TutorialsHi. I'm sure I've seen it before, but I nned to find out how to have an image on the page change when you roll over the smaller image next to it. i.e. I have a picture of a wine bottle in the middle of the page with 6 thumbnails of other wine bottles running down the left hand side. So when yuo put the mouse over the thumbnail, the picture in the middle changes to match the thumbnail. I'm sure I've even done it before, but my mind has gone blank!! Leroy Hi. Is it possible to have a box on the screen that displays different text when you roll over the different thumbnail. I'm in the middle of designing a site for a used car shop. I have a bunch of thumbnails on the screen and an empty box that I want to display the desciption of each thumbnail when you roll over it. Can this be done?? Leroy Let me start by say I am a newbie so please be gental, also let me thank you ahead of time. I do appreciate your time already... So on my left navigation I have an issue with the contact us image / newsletter image. Everything looks great until I roll over newsletter. It changes contact us to newsletter....I think it has to be in my javascript but I can't pinpoint it. Any help would be great. this is my page http://web.vtc.edu/users/cjb06271/CI...nal/order.html there are several things I would like to happen. 1. the right collumn background to be where the right collumn should be(so other links in navbar) 2.The test between the roach pictures to be alligned with the top rather than bottom of pictures (so smaller windows can see) 3. When you size the window smaller than the text, a scroll bar appears, and when you scroll the background no longer exists. If I put it on auto the background will only go as far as the text does. 4. (nice but not required)The cocroachs to be alligned to the left and right of the top bar respectively, and the text in the middle. 5. (nice but not required) the right column background image is being cut in half (as does the top one if you size small enough). any way to make the images ignore the collumns? don't worry about the colors I will be changing them soon OK, so, this is realy starting to bug me, i have spent an hour maby 2 on this but nothing has worked, the problem is that i want an inner LEFT side bar and a RIGHT side content box inside a box on the right, if you dont get what i mean, the website is http://brett.unixpod.com/test/index.html And the CSS stylesheet http://brett.unixpod.com/test/css/home.css ok, the text and stuff that is circled in white, i want moved up so that it is aligned with the text on the left, I want the stuff in the circle moved to the top of the big box its in, falong with that little box of text I WANT THE STUFF IN THE CIRCLE MOVED TO THE TOP OF THE BIG BOX ITS IN, ALONG WITH THAT LITTLE BOX OF TEXT I recently bean using ssi instead of frames and i now have an issue... I do not know how to keep the menubar on the left hand side at the top... see as my page streaches it centers itself in the midle of the screen... i am using tables to create a framelike effect without the issues that frames create My OS is windows 7 64bit and have installed: - internet explorer 9 - Mozilla Firefox - Google Chrome My website is getting displayed correctly on Firefox and Chrome but is a bit of a mess on IE9 If you could have a look and let me know if there is anything I could do, would be much appreciated. Here is one page of my site that is bothering me: http://www.dashony.com/Solar%20panel...0projects.html Please check out the white menu, ( SpryMenuBarVertical ) using IE and one of the other 2. Thanks! Can anyone suggest how i fix the problem i have here with IE? HTML Code: <body> <div id="container"> <div id="header"> <img src="images/thePlacePromotion.jpg" alt="The Place Promotion Agency for Gloucestershire" width="960" height="80" /> </div> <div id="middle"> <a href="http://www.glosfirst.co.uk"><img src="images/Middle.jpg" alt="We're building a new website, meanwhile here's a link to the current Gloucestershire First website." width="960" height="578" border="0" /></a> </div> <div id="bottom"> <a href="http://www.glosfirst.co.uk"><img src="images/slogan.jpg" alt="We're building a new website, meanwhile here's a link to the current Gloucestershire First website." width="960" height="80" border="0" /></a> </div> </div> </body> CSS is: Code: body { background-color: #96be3f; } #container { width: 970px; background-color: #96be3f; height:auto; margin: auto; } #header { width: 960px; padding: 20px auto; margin: auto; } #middle { width: 960px; height: 567px; margin: auto; } #bottom { width: 960px; height: 80px; margin: auto; } the top header on IE is over to the right! Thanks Hurley Hi everyone, I recently landed myself a job as a web manager. It's been a long time since I done it however, as I've had children to bring up and so on - i'm a bit rusty but getting through it okay. I've hit a snag however and I'm wondering if anyone can help me... The website i'm charged with watching over works completely fine bar one problem, and its not even a big problem - just a bit annoying. One of the images, when opened in Chrome, floats to the left when it is supposed to be central. This is the only image to do this on the website in any browser. Has anyone got any tips for me? I am very new to html editing but trying to work my way around. I have made my website in Dreamweaver and everything looks correct on dreamweaver and on firefox but when opened in IE, everything on my page becomes centered an underlined. The first item on the page is centered and underlined but the coding ends there. Not sure what I did wrong. Thank you in adavance for any help. Hi, I am facing some problem. I am currently doing a html template. But I don't seem to be able to solve the gap problem I am facing (View my snapshot), can anyone help me? Thanks alot! Snapshot file: http://i49.tinypic.com/3t3eo.jpg HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="styles.css" rel="stylesheet" type="text/css"> <title>Darren Ng - Future Pilot</title> </head> <body> <div id="wrapper"> <div id="header"> <div id="logo"> <h1><a href="index.html"><span>Darren's</span> Website</a></h1> <table><tr> <ul id="menu"> <li><a class="current" href="#">Home</a></li> <li><a href="#">Practice</a></li> <li><a href="#">Attorneys</a></li> <li><a href="#">Accidents</a></li> <li><a href="#">News</a></li> <li><a href="#">About Us</a></li> </tr></table></div> <div class="clr"></div> </div> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <td align="center" valign="middle"><table width="1000" height="550" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="1000" height="360" align="center"><img src="images/header.gif" width="1000" height="360" hspace="0" vspace="0" border="0" align="top" usemap="#MapMap"></td> </tr> CSS File: Code: body { font: .74em Tahoma, Verdana, Sans-Serif, Arial; color: #7f7f7f; background-image: url('images/bodypixel.gif'); background-repeat: repeat; } h1 { font: normal 5em "Trebuchet MS", Helvetica, Arial; } p { margin: 0 0 15px; line-height: 1.6em; } a { outline: 0; color: #304D6F; text-decoration: none; } li { list-style: none; } li a, img { display: block; } img { outline: 0; border: 0; } #wrapper { width: 984px; margin: auto; } .clr { clear: both; } #logo { float: left; padding: 30px 15px; } #logo h1 a { color: #fff; } #logo h1 a span { color: #808080; } #menu { height: 44px; padding: 5px 0 0 4px; } #menu li { float: left; font-size: 1.3em; text-transform: uppercase; } #menu li a { color: #888; margin: 0 50px 0 0; } #menu li a:hover { color: #fff; } #menu li a.current { color: #fff; } take a look at this and can anyone tell be why it does this in ie it look fine in firefox and safari http://nathanoconnor.co.uk/kartingchampionships/site/ thanks here is where my problem is. In ie the hover effect does not work, but in firefox it does! help. Hi The bit of coding below works fine in firefox and ie 5 and older it does not show right in ie 6 and 7 Please can someone tell me how to fix this bug. <td align="left" valign="top" bgcolor="#E7EEF5"><ul type="square" class="style2"> <li class="style3">Ground Training, starting and schooling young horses</li> <li class="style3">Re-schooling and corrective training to overcome behavioural and physical problems</li> <li class="style3">Rehabilitation following injury or illness</li> <li class="style3">Training for horse and rider at all levels and disciplines</li> <li class="style3">Re building confidence between horse and rider</li> <li class="style3">Re-training race horses</li> </ul> </td> <td align="left" valign="top" bgcolor="#E7EEF5"><ul type="square" class="style2"> <li class="style3">Competition preparation</li> <li class="style3">Advanced Equine Dental Technician</li> <li class="style3">Tellington Touch (TTeam) Groundwork and bodywork</li> <li class="style3">McTimoney Manipulation</li> <li class="style3">Equine Sports Therapy</li> <li class="style3">Massage, Stretching and Bodywork classes for horse owners</li> </ul> </td> Hey guys I have coded my site and so far it works fine in IE7 and IE6 but IE5.1 it not center in the page the nav has moved to the top of the page. See screenshots. Whats wrong with IE5.1 to make my site move so much and how do I fix the problem. Cheers EDIT: Sorry guys the screenshot below with the site off to the left is IE5.1 Let me state my problem. Under my links which is under the banner, it says My Tickets, and User it seems in Internet Explorer it shows an extra 2px border on the bottom. Something to do with the height I assume. Now in firefox there is a 10px gap in between the Ticket Deck banner and the Links Bar. Also I can't keep to get the copyright centered for some reason :s . Here is the html: Code: <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> <html><head><title>Ticket Deck v. 1.0 beta</title> <link href='index.css' rel='stylesheet' type='text/css' /> <body> <div id='header'> <div id='tlogo'><div id='logo'></div></div> <div id='links'> <ul> <li><a href='#'><img src='images/linksmy.gif' width='91' height='25' alt='My Tickets'></a></li> <li><a href='#'><img src='images/linksuser.gif' width='83' height='25' alt='User Area'></a></li> </ul> </div> </div> <br /> <div id='memberbar'> <div id='textmargin1'> test </div> </div> <br/> <div id='container'> <div id="content">Welcome to Ticket Deck's Ticket System. What is listed below is your ticket's summary clicking on the subject title will bring you directly to your ticket.<br/> <div id="tickets"><div id="tbar"><div id="textmargin">Ticket Summary</div></div> <div id="tcontain"> <table width='100%' cellpadding='3' cellspacing='1' id='toutline'> <tr> <th width='5%'>id</th> <th width='30%'>Subject</th> <th width='10%'>Priority</th> <th width='23%'>Starter</th> <th width='15%'>Status</th> <th width='10%'>Dept #</th> </tr> <tr> </table> </div> <br/> <center>Welcome Guest! Please login to view your tickets!</center> </div> </div> <div id="nav"><div id="navbar"><div id="textmargin">Login</div></div> <div id="textmargin"> Username: <br/> <input type="text" name="username" size="25" /><br /> Password: <br/> <input type="text" name="username" size="25" /><br /><br /> <input type="hidden" name="do" value="new"> <center> <input type="submit" name="Submit" value="Login" /> <input type="reset" name="reset" value="Reset" /><br/> </center> </div> <div id="navstrip"><div id="textmargin">Ticket Statistics</div></div> lovely stats here <br/> <div id="navstrip"><div id="textmargin">Ticket Statistics</div></div> Update: Ticket Deck re </div> <div id="copyright"> <center>Powered by <a href="#">Ticket Deck</a> v. 1.0 Beta 1</center> </div> </div> </div> </body> The CSS Code: body { background: #f8f8f8; color: #8a6600; font: 12px verdana, arial, sans-serif; margin: 0px; padding: 0px; } a img { border:0; } div#tlogo { background-image: url(images/tlogo.gif); width: 100%; height: 25px; } div#logo { background-image: url(images/logo.gif); width: 197px; height: 25px; margin-left: 25px; } div#links { height: 25px; min-height: 25px; width: 100%; background-image: url(images/linksbg.gif); padding: 0; margin-top: 1px; } div#links ul { list-style:none; } div#links ul li { float:left; } div#header { height: 51px; } div#container { color: #ebba34; height: 200px; min-height: 100%; width: 830px; margin: auto; } * html #container { height:100%; } *html #copyright { position: absolute; bottom: 0px; } div#date { margin-right: 10px; float:right; } div#nav { color: #1b90b7; border: 1px solid #61a5b9; float: left; width: 220px; background: #e5f9ff; } div#navbar { border: 1px solid #61a5b9; width: 216px; color: #1b90b7; margin-left: 1px; margin-right: 1px; margin-top: 1px; height: 23px; background-image: url(images/nav.gif); } div#navstrip { width: 100%; background-image: url(images/nav.gif); height: 23px; border-top: 1px solid #1b90b7; border-bottom: 1px solid #1b90b7; } div#textmargin { margin-left: 2px; margin-top: 4px; } div#textmargin1 { margin-left: 2px; margin-top: 6px; } div#tickets { background: #ffebb3; width: 602px; border: 1px solid #e8af3a; float: right; } div#tbar{ width: 598px; background-image: url(images/t_bar.gif); height: 23px; border: 1px solid #e8af3a; margin-left: 1px; margin-right: 1px; margin-top: 1px; } div#tcontain{ width: 599px; height: 18px; margin-left: 1px; margin-right: 1px; } div#content { width: 602px; color: #8a6600; float: right; } div#memberbar { color: #1b90b7; style: bold; width: 80%; height: 28px; background: #e5f9ff; border: 1px solid #61a5b9; margin:auto; } div#toutline { border: 1px solid #cde1ed; } #copyright { text-align: center; height:20px; position: absolute; bottom: 0px; position: bottom; } table, tr, td { background: transparent; font-size: 12px; font-family: verdana, arial, sans-serif; } table th { background: #fadc89; font-size: 12px; font-family: verdana, arial, sans-serif; font-weight: normal; text-align: left; padding: 2px; } table th a { color: #003E67 !important; text-decoration: none; } Any help is appreciated . I know that this isn't valid xhtml I haven't gone that far in fixing it to make it valid, just trying to fix the obvious problems. Thanks, Brian Hi everyone I hope some of you pros can help me out here? When you go to my site www.iMaciForums.com with IE 6 the text is all misaligned, I had the same problem with IE 7 & but I fixed that its just IE6 now. So could you take a look and let me know whats wrong with it, because it's driving me crazy Thanks. Hi guys, now i know this is my first post here, i have joined because i am really stuck and i would really appreciate any help. First off, just so you know - i know near enough nothing about HTML I am busy designing my site and i cant go much further as there is one issue really bugging me. My website is vBulletin (yes i know its PHP) and im using another script called vBadvanced CMPS (a portal mosification). I have tried to add a navigation bar to the left of my forums and it works! Only problem is, it really breaks up the forum. Take a look for yourself Link Notice the way its all broken up at the bottom? Anyway, i posted my problem on both the vBulletin & vBadvanced websites without much luck. One of the admins told me that i needed to get some errors fixed (all 109 of them)... I managed to narrow the errors down to 67 all in all. Here I really am stuck guys and im sure these errors will be relatively easy to fix for someone who has experience with HTML/PHP. if anybody needs me to i can paste the vBulletin templates that are causing the problems Any help would be great. Thanks |