HTML - Problems With Some Script
Hey guys!
i'm trying to edit some script and i cant see what wrong with it... i will more then happy to get some help. so i'm trying to make this window and when i'm press on Two its will open in the same window '2' contect.. etc etc.... Thanks! Code: <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css">div.tabs { background: #ddd; padding: 1em; width:100%; margin-bottom:5px } ul.tabNavigation { list-style: none; margin: 0; padding: 0; } ul.tabNavigation li { display: inline; } li {list-style-type:none} ul.tabNavigation li a.selected { background: #FFF; border:1px solid #b8b8b8;border-bottom:1px solid #fff; color: #000; } ul.tabNavigation li a { padding: 3px 9px; background-color: #436184; color: #fff; text-decoration: none; width:auto;height:auto; } a {text-decoration:none;cursor:pointer;color:#32547c} div.tabs div.container { margin:0; padding: 10px; margin-top: 3px; border: 1px solid #FFF; background: #FFF; border:1px solid #b8b8b8; overflow:hidden; padding-top:20px; padding-right:0px; width:96%; } div.container { margin: auto; width: 90%; margin-bottom: 10px; color: #000; } div.tabs div h2 { margin-top: 0; padding-left:5px; } div.tabs div img {max-width:100%;} img {border:0} #vk_comments {border:0;} </style> </head> <body> <div class="tabs"> <ul class="tabNavigation"> <li><a class="selected" href="#first" style="border-top-left-radius: 5px 5px; border-top-right-radius: 5px 5px; "> one</a></li> <li><a class="" href="#second" style="border-top-left-radius: 5px 5px; border-top-right-radius: 5px 5px; ">two</a></li> <li><a class="" href="#3" style="border-top-left-radius: 5px 5px; border-top-right-radius: 5px 5px; ">three</a></li> <li><a class="" href="#4" style="border-top-left-radius: 5px 5px; border-top-right-radius: 5px 5px; ">fore</a></li> <li><a class="" href="#5" style="border-top-left-radius: 5px 5px; border-top-right-radius: 5px 5px; ">five</a></li> </ul> <div id='first' class='container'> <h2>one</h2> one </div> <div id="second" class="container" style="display: none; "> <h2>two</h2> two </div> <div id="3" class="container" style="display: none; "> <h2>three</h2> three </div> <div id="4" class="container" style="display: none; "> <h2>four</h2> <p> four</p> </div> <div id="5" class="container" style="display: none; "> <h2>five</h2> </div> </div> </body> </html> Similar TutorialsHi There, I'm having some problems implementing a script. My problem thus far is that Firefox is able to interpret and run the script properly, however, IE is not. (http://healing-spiritual-artist.com/gallery.html) On click for the image, a popup gallery applet should appear. However, when I remove the script and run it on a blank page, IE is able to interpret it just fine (http://www.healing-spiritual-artist.com/testpage.html). Can you please offer me some guidance on where my code is conflicting? I would be forever grateful. _-Andy-_ 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 Hey all, new here and not a very good coder at all, but i find pieces of information and try and make best of it....and as far i can see i cant find this sort of information on this website my problem is im trying to create a code that will log in to a website, wait a few (i.e. 2 seconds) then go to a second web page that is a part of this site for example --> www.htmlforum.com --> (automate login) --> then go to www.htmlforum.com/example this is what i have found so far </head> <body> <FORM action=http://www.thewebsiteexample.com/login.php method= post name=login> <INPUT class=login_input type=hidden name=usrname value="myusername"> <INPUT class=login_input type=hidden name=uemail value="myemail@hotmail.com"> <INPUT class=login_input type=hidden name=peeword value="mypassword"> <INPUT class=login_input type=submit value=Login> <body onload="document.login.submit();"> </form> </body> this code allows me to log in successfully to the site i wish to go to i also have this code to allow loading of a new page (but works only AFTER successfully logged in) <script> <!-- location.replace("http://www.mywebsiteexample.com/arms.php"); --> </script> my problem is i dont know how to join the code, whereby i successfully log in, then run the script to go to the subpage my idea is to delay running of the script code perhaps? which should then allow to successfully load the subpage...or perhaps you guys know another way help is DEFINITELY very appreciated! cheers all! 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 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> 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. 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 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, 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; } 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 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 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? here is where my problem is. In ie the hover effect does not work, but in firefox it does! help. 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! 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 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 Hello, I have few problems with layout: 1 In all IE versions fields marked with number 1 move left and right in other browser's it works good. 2 I have marked round corners, this work only in FF browser, chrome, opera doesn't display. Image (for better understand): http://utorrentz.projektas.lt/kita/problem.png My .css: Code: .pagebody { background: transparent url(box.png); color: #FFE2AD; padding: 15px 10px 15px 10px; text-align: left; -moz-border-radius-topleft: 6px; -moz-border-radius-topright: 6px; -moz-border-radius-bottomleft: 6px; -moz-border-radius-bottomright: 6px; border-radius: 6px margin: 0 0 5px; } Is there any solution for that ? |