HTML - Div; Show And Don't Show Links
Hello all!
I'm working for school at an website, and I've a problem.. I've made a link, when you click on it it open some tekst information. I would this 4 time, just only the first one works...! Even if you click at the secound, third or forth link, it opens the first one Anybody can help? Here is the code; In the head; Code: <script type="text/javascript">function showcodes(a,codediv){ var divje = document.getElementById( codediv ); if (divje.style.display == "block") { divje.style.display = "none"; a.innerHTML='Klap uit'; } else { divje.style.display = "block"; a.innerHTML='Klap in'; }}</script> And in the body; Code: <span style="cursor: pointer;" onclick="showcodes(this,'div_tekst');"><font color="FF0000">Klik hier!</font></span><div id="div_tekst" style="display: none;"> <font color="#FF9900"> Wil je even snel weten wat voor weer het is? Hier een overzichtje!<br><br> Hier zie je wat voor weer het momenteel is, als je je muis erbij houd, zie je een paar gegevens! <br><br> <IFRAME SRC="http://gratisweerdata.buienradar.nl/hetweer.php" NORESIZE SCROLLING=NO HSPACE=0 VSPACE=0 FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0 WIDTH=50 HEIGHT=40></IFRAME> <br><br> <script src=http://m.fileindex.nl/files.js> </script> <br><br> <IFRAME SRC="http://www.fileindex.nl/iframe.php? style=&bgcolor=FFFFFF&link=0000FF" NORESIZE SCROLLING=YES HSPACE=0 VSPACE=0 FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0 WIDTH=250 HEIGHT=100></IFRAME><font> </div> I hope someone could help me! Edit*; here is the example; http://informaticacase.freehostia.com/ (click in the example on 'het weer') Similar TutorialsWe have some data that is put into a table with a link to images if available. In Firefox (although only in version 4), the following works: <table> <tr><td></td><td><a><a href="../images/image1.wma" </a>Image label</a>< br />Second line of label (don't want this underlined)</td> ... </table> but the same web page doesn't show any links in Safari (5.0.5). I thought maybe Safari didn't like links in a table, so I removed the table. Still no links. I thought maybe it was the relative reference and made it absolute. No luck. I've tried removing the extra <a> and it doesn't change anything. The extra <a> is to keep the second line from being underlined. What am I missing? Mei I'm not new to HTML but I'm definitely still a beginner. So, please don't expect me to know exactly what your talking about. I'm trying to make a website, that has a "show more" and a "show less", for long paragraphs, that don't have enough room to fit on a page. Here's my code: head: Code: <style type="text/css"> <!-- #wrapper { } a { cursor:pointer; } --> </style> <script type="text/javascript"> <!-- function switchMenu(obj) { var el = document.getElementById(obj); if ( el.style.display != "none" ) { el.style.display = 'none'; } else { el.style.display = ''; } } function hide(){ document.getElementById("seemore1").style.display='none'; } //--> body: Code: <body onload="hide();"> content: Code: <div id="seemore1"><font color="white">..and it will display more content in a new paragraph..</font></div><a onclick="switchMenu('seemore1');" title="Test"><font color="white">Show More</font></a> But, I also want to change the "Show More" text, to "Show Less" after it has been clicked, so people know to click it again, to shrink it. This is what I tried to add to it, but it failed. head: Code: <script type="text/javascript"> oldTextAry = new Array(); function changeText (fieldObj, newTexStr) { if (newTexStr == fieldObj.innerHTML) { fieldObj.innerHTML = oldTextAry[fieldObj.id]; } else { oldTextAry[fieldObj.id] = fieldObj.innerHTML; fieldObj.innerHTML = newTexStr; } } </script> body: Code: <a href="#" onclick="changeText(this,'Show Less');" id="text1link">Show More</a> I tried the most simple thing that I thought of.. was adding both around the text, but, obviously that didn't work.. Does anyone know of any solution to my problem? Hi! I am using Dreamweaver 8 to develope my site. I have broken the page in three pieces(frames) So that the top frame shows the title, the left frame is for links that I want to show as flash movies in the right frame. I have studied the help file and I have looked on the web and I can't find an explanation that I can understand on how to do this. I believe the clickable link should be an href but I don't know how to code it. Can someone explain this to me? Thanks in Advance! Paul i made this site today and for some strange reason, it will not show up in IE AT ALL!!!!!what is wrong with it? heres link http://ascskate.ueuo.com/testpage.htm and code HTML Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>pixelbypixeldesigns | welcome to pixelbypixeldesigns <style type="text/css"> <!-- body,td,th { font-family: "Century Gothic"; font-size: 12px; font-weight: bold; color: #FFFFFF; background-repeat: no repeat; } body { background-color: #000000; background-image: url(bg.jpg); } #Layer2 { position:absolute; top:0px; width:750px; height:100%; z-index:1; left:216px; } #layer1 { width:100%; top:0px; height:50px; z-index:2; left: 216px; } #footer { position: absolute; bottom: 0; width:800px; height:25px; z-index:3; } #drop { padding:0; margin:0; height:2em; list-style-type:none; border-left:1px solid #FFFFFF; } #drop li { float:left; width:5em; height:2em; line-height:2em; border-right:1px solid #00000; position:relative; text-align:center; } #drop li a, #drop li a:visited { display:block; text-decoration:none; color:#FFFFF; } #drop li a span, #drop li a:visited span { display:none; } #drop li a:hover { border:0; /* needed to trigger IE */ color:#000000; } #drop li a:hover span { display:block; width:5em; height:2em; text-align:center; position:absolute; left:-2px; top:-3px; color:#00000; cursor:pointer; } .date { font-size: 20px; font-weight: bold; color: #FF0000; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-color: #FFFFFF; font-family: "Century Gothic"; border-bottom-width: 1px; } a:link { color: #FFFFFF; text-decoration: none; } a:visited { color: #FFFFFF; text-decoration: none; } a:hover { color: #990000; background-color: #FFFFFF; text-decoration: none; } a:active { color: #FFFFFF; text-decoration: none; } //--> </style> </head> <body> <div id="layer2"> <div align="left"><img src="top.png"></center> <center><ul id="drop"> <li><a href="#nogo">About</a></li> <li><a href="#nogo">Porfolio</a></li> <li><a href="#nogo">Contact</a></li> <li><a href="#nogo">Links</a></li> <li><a href="#nogo">FAQ</a></li> </ul></center> </div> <p class="date">10.25.06</p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi ut massa. Fusce eleifend facilisis tortor. Nullam quis urna. Quisque sagittis ligula. Etiam commodo neque vel mauris. Quisque ac nunc. Fusce laoreet mi in velit gravida accumsan. Cras venenatis feugiat enim. Sed mattis mattis odio. Ut mattis cursus augue. Morbi eros leo, luctus et, semper sed, aliquam ut, lacus. Praesent et urna ac dolor egestas eleifend. Curabitur aliquam eleifend neque. Fusce sed odio. Nullam sapien. Nullam libero urna, accumsan vel, tempus sit amet, pharetra sit amet, quam. Proin cursus. Ut neque sapien, venenatis eget, adipiscing ac, gravida quis, nisl. Sed nec magna. Nulla dignissim mollis libero. Cras gravida lectus a enim. Etiam eleifend suscipit pede. Nulla facilisi. Etiam nec augue vitae dui venenatis eleifend. Nunc malesuada interdum lorem. Sed porta nibh pharetra nunc. Suspendisse eu dolor. Donec auctor. Praesent pulvinar orci non urna. Donec ornare vestibulum lectus. Vivamus rhoncus, justo vel ornare feugiat, libero felis rutrum nisi, in vulputate mi orci non lectus. <p><a href="#">test link</a></p> Etiam velit dolor, condimentum et, faucibus in, condimentum sit amet, magna. Suspendisse lobortis volutpat turpis. Integer nisi augue, feugiat quis, sagittis non, posuere ac, dui. Pellentesque id turpis id ante fermentum laoreet. Vivamus at arcu. Vivamus at purus vitae elit fringilla euismod. Duis nec nisi. Cras non nisi et augue blandit posuere. Sed dignissim ornare purus. Cras mollis, turpis id vulputate pretium, mauris mi tempus urna, sit amet dapibus risus risus vel mauris. Ut massa. Quisque eleifend. Praesent vel urna. Nam ornare ligula sit amet velit. Cras dolor nulla, nonummy sit amet, congue sed, commodo id, sapien. Ut quis eros eget mi molestie ornare. Nulla venenatis quam a lorem. Praesent non neque quis elit bibendum ultrices. Praesent eleifend dolor quis ligula. </div> <div id="footer" align="right"><a href="#">Home</a> | <a href="#">About</a> | <a href="#">Portfolio</a> | <a href="#">Contact</a> | <a href="#>Links</a> | <a href="#">FAQ</a> </body> </html> Hi, I would like to write something for a forum or a blog and I would like the URL not to show in the text, but when you click on the underlined subject, it would go to the page you want it to. I see it all the time, but don't know how to not show the URL (http://www.etc.) in the paragraph. I will be writing this in text format, not html format ( I do html all the time) Please help. Thanks. I'm almost embarrassed to post this. I've done this before, but I must be missing something... Here's the deal: I have a div with an id "note": HTML Code: <div id="note"> See us at the trade show! Call 555-1234 </div> In my CSS page I have these properties for the "note" id: HTML Code: #note { background-image: url(images/note.jpg); clear: both; } The problem is, the text shows, but nothing I do gets the image as a background to show. The "images" directory is at the same level as the div's file, but I've tried the url with and without a beginning backslash. The image is just a single color, orange jpeg created in Photoshop. Any ideas what I'm missing anyone? Thanks for any help! Does anyone know where I can find a script that will allow a bunch of pictures to be changed into a slideshow. But I need this slideshow to be of pictures scrolling horizontally. where it just keeps looping. does that make sense? How would I have a page open once only no matter what domain the person types (google.com or google.com/faq, etc.)? I have a link on the page that if the user clicks it, two other pages open, but the first one is the one I need to have "replace" the page so that it doesn't appear anymore. I'm trying to figure out how to create a slide show within a static sliced webpage. I'm self taught with Fireworks and am pretty confident however always willing to learn from others whenever I get the chance. The page is for a friend, they have asked me if its possible to have a maximum of 3 images that roatate on a slide show within the page, so the first picture will be there for 4 seconds then the next and so on. Thanks in advance... Would anyone be able to tell me why this image won't show? I have no idea! <tr> <td align="center"><img src="logo.jpg" alt="Flowers by Design" height="100" width="760"></td> </tr> I have tried to find a code for my site to add a slide show for photo's with no luck, has anyone done this and can anyone help me out here? Thanks hi people, Just a basic request t6o look over my code and let me know if im going wrong and also i t seems to be fine when i create it but when i load it to the server this is what i get.. http://www.basicproduction.co.uk/ here is my code 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=iso-8859-1" /> <title>Website coming soon!!!</title> <style type="text/css"> <!--body {margin: 0px;}--> </style> <meta name="keywords" content="Basicproduction, Liam Carlin, VJ, Video Production, motion graphics, Live performance"> <meta name="description" content="Video Production, Motion Graphics, Live Video performance, Basicproduction, VJ Liam Carlin, Liam Carlin"> </head> <body style="margin:0;background:#000;"> <div align="center"><a href="http://www.myspace.com/basicproduction" target="_blank"><img src="../Image/BP_Holding_page.gif" alt="" width="720" height="600" border="0"/></a></div> </body> </html> where could i be going wrong? Thanks 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" /> <title>Untitled Document</title> <style type="text/css"> <!-- html,body { height:100%; padding:0; margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } #table { height:100%; border:double; } --> </style> </head> <body> <table width="660" align="center" cellpadding="0" cellspacing="0" id="table"> <tr> <td valign="top" background="main_07.png"></td> </tr> </table> </body> </html> This is my code, I simplified it. In the table, I have main_07.png as my background. Inside dreamweaver, it shows normal. But browse as firefox, it just won't show. What is the problem? Thanks. Hey everyone! I am new to this forum and I have a very lame question (almost afraid to ask). I have a very simple website consisting of 2 frames only (topframe for a very simple menu and a mainframe). I have done such simple websites multiple times and I never had any problems removing the border(s) between the frames. In the <frameset> I just set all the attributes (like framespacing and frameborder) to "0" (and I also tried "NO"). In Firefox this works perfectly and the border in between the mainframe and the topframe does not show, but in Explorer the border does show. I can't get rid of the border in IE. Does anyone know what I am doing wrong? Thanks in advance! Regards, sAner I need a show button when is clicked it disappears and on that place shows text , image or an video.Even button doesn't have to look as a button , it can be image or a text.I have found that on http://nba.lemons.se/ and on that site it shows result when button is clicked , I need something similar but can't find html code for that.If someone knows that , please post html code of that button. hi all, i have a holding page for my website and in Dreamweaver it look fine and works fine but when uploaded it doesnt work. here is my site and also my code... www.basicproduction.co.uk code... HTML Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="keywords" content="Basicproduction, Basic, Production, Video, VJ, Liam Carlin, 6071842, motion Graphics, Music, house"/> <meta name="description" content="Basicproduction Provides Live video performance, video production and motion Graphic Services"/> <title>Basicproduction Site coming soon!!!</title> <style type="text/css"> <!--body {margin: 0px;}--> </style> <body style="margin:0;background:#000;"> </head> <body> <div align="center"><a href="Image/BP_Holding_page.jpg" target="_blank"><img src="Image/BP_Holding_page.jpg" alt="" width="720" height="600" border="0"/></a></div> <div align="center"><a href='mailto:info@basicproduction.co.uk?subject'><img src="Image/Contact.gif" alt="" width="192" height="28" border="0" /></a></div> </body> </html> any ideas why? Thanks Guys Basic Hey everyone, I'm pretty new to html, and am having a problem with displaying some images. I cant seem to find any problems with the code I have, but the images wont show up in any browser. <center> <table border = "0"> <tr> <td><img src="/images/Home button.jpg" alt="Home" width="117" height="50"/></td> <td><img src="/images/apartments button.jpg" alt="apartments" width="117" height="50"/></td> <td><img src="/images/Tenant button.jpg" alt="Tenant Info" width="117" height="50"/></td> <td><img src="/images/Utilities.jpg" alt="Utilities" width="117" height="50"/></td> <td><img src="/images/About button.jpg" alt="About Us" width="117" height="50"/></td> <td><img src="/images/contact button.jpg" alt="Contact Us" width="117" height="50"/></td> </tr> </table> </center> I'm positive I have the file name and extension right, there all jpg's and all around 560KB. Help would be greatly appreciated. Thanks, Bill www.lasrocasresort.com , IE and Firefox both render the page correctly . Safari will leave a blank line between the flash banner and the body of the page. Any suggestion ? Pakal I want to have multiple banners appear every couple seconds like a slide show. Here is my website. (http://www.dubcityfilms.com) The banner is the one with the cars on it. I want to have 5 or so different ones that randomly switch. Can someone help me with this? Thanks. Im really getting tired of these unexpected flaws of IE. Cant wait to see how IE9 responds to code.. jeez. Anyway.. my scrollbar fails to show up here and here in IE. Ive used the overflow-x:hidden, but not the entire thing... FF and chrome display the vertical scrollbar just fine. stupid IE hides the entire thing! Where, o where did I go wrong.. |