HTML - Programming Div And Onmouseover Codes
so I am building a website, and I decided to test out a code before doing any major programming. Of course, it didn't work. I basically need a square covered in thumbnails of images, but then when the mouse is moved over a thumbnail the full-size image will show in that square (overtop of the thumbnails) until the mouse is moved off of the thumb.
right now, however, it will not work on mouseover, but needs to be clicked on and only shows while the mouse button is held. I am relatively new to DIV codes other than their use for alignment, but I think it might have something to do with layering? I got the code from he http://www.technorealm.co.uk/scripts...rshowtext.html and altered it to include my content, but as I was looking through the code I noticed there was no z-index within the DIV tag. Also, I know quite a bit about HTML but not very much about CSS, JavaScript, etc. Below is the code for the entire page, which you can view at this address: http://www.freewebs.com/tintedlens/ Any help would be appreciated! Thanks! <html> <head> <title>Photos.</title> <script language="Javascript"> <!-- function toggleDiv(id,flagit) { if (flagit=="1"){ if (document.layers) document.layers[''+id+''].visibility = "show" else if (document.all) document.all[''+id+''].style.visibility = "visible" else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible" } else if (flagit=="0"){ if (document.layers) document.layers[''+id+''].visibility = "hide" else if (document.all) document.all[''+id+''].style.visibility = "hidden" else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden" } } //--> </script> <style type="text/css">#div1, #div2, #div3 {position:absolute; top: 91; right: 91; visibility:hidden}</style> </head> <body bgcolor="FFFFFF"> <div id="link1" style="position: absolute; top: 100; right: 100;"> <a href="#" onMouseOver="toggleDiv('div1',1)" onMouseOut="toggleDiv('div1',0)"><img border="0" src="link1.jpg"/></a> </div> <div id="link2" style="position: absolute; top: 190; right: 100;"> <a href="#" onMouseOver="toggleDiv('div2',1)" onMouseOut="toggleDiv('div2',0)"><img border="0" src="link2.jpg"/></a> </div> <div id="link3" style="position: absolute; top: 280; right: 100;"> <a href="#" onMouseOver="toggleDiv('div3',1)" onMouseOut="toggleDiv('div3',0)"><img border="0" src="link3.jpg"/></a> </div> <div id="div1"><img border="0" src="image1.jpg"/></div> <div id="div2"><img border="0" src="image2.jpg"/></div> <div id="div3"><img border="0" src="image3.jpg"/></div> </body> </html> Similar Tutorials2 Quick questions: 1) Is it considered good, poor, or indifferent programming style to implicitly connect labels with other form tags. For instance, is one of these preferable to the other? Code: <label for="username">Username</label> <input type="text" name="username" id="username" /> <label>Username: <input type="text" name="username" id="username" /></label> 2) Is it good or bad programming style to have the name and id of a tag the same? For instance, in the example above, the input object has an id and name of "username". Is this considered ok? Tahnks for all the help~ Is it possible to have user-defined functions in an HTML code that you can call whenever needed (like in C language)? I am developing a website and it has many pages. All pages have common features like banner image, footer etc. For example, I want to change a common feature, what I am currently doing is go do each page and make the correction. Is there any way that I can make the change in one place and let all other pages change by itself? For example, is it possible strip out of a section of code, save it another file and call it from all pages? I know this can be done when using javascript by making a new .js file and calling it. Is it possible in HTML? Say export a table (the code) to another file and call it from different pages? Any suggestions would be much appreciated. Hello I am a Professional Website Programmer/Cloning I am Currently Available to Work on Any website Cloning and Programming PM Me For for My Portfolio And I can Get Started ASAP Also we will discuss rates in Pm. Web Design Company is a site previously built in using only html and javascript.Now it wants to switch to J2EE or php.What is the best choice for it,can any one help? web design Can you guys tell me what you consider to be the best best visual HTML programming application(s)? I'm talking about a program that has a GUI (graphical user interface), something similar to MS Word, which you could use to design a web page layout, and when you finish the program will spit out your layout in HTML code. Thanks, any help and advice is appreciated Hey Everyone, I Opened up a website and i need help with some codes if you could please give me the codes i would be so thankful, Thank you 1. "Mailto" Code (When you post a link to your email address and the email window automatically comes up) 2. "Save As" Code (You Post a link to a Song and when you press it the "Save As" Window Pops Up) 3. "Image Link" Code (Post a link in the image) Thank you so much hello.. this is my tumblr blog and I wanted a new theme but when I pasted the theme the background turned pink and I can't seem to find the place on where to add another navigation link.. i think i screwed the codes up when I pasted it on customize. here is the code: http://freetexthost.com/1wu3h2xkfq here is how my blog looks right now itsestebanb111tch.tumblr.com/ please replace 111 to one I only or here is a preview of the theme http://themesbycomemattmebro4.tumblr.com/ also i just want the background to be just white.. thank you vry much hello to everyone. I am at the first steps into webdesign, www.diivino.com is my website which I made just playing around whith DW and flash. A week ago I had a validation check and I found plenty of errors, so far I have around 50 of them still. I don't know if this is the cause of poor traffic,then I tried to fix them myself but I must have done a huge mistake because from a nice colourful website it turned into a whiteone. could u please take a look at it and help me out? thank you very much in advance? thomas Heya all , i was searching on Google about these codes ... but nothing sure. I want to help me about some HTML codes. First: I want to know if exist some HTML code to auto-create a new page. What's that ?! I want to create my personal blog ... and if i'm posting (par example) 10articles maximum , when i'll try to post the 11th article ... it auto-create a second page and auto-add the first article from the first page , into the second. Second: RSS Feed. Third: Comment Box (full option). I mean with the next possibilities: 1) Avatar choose 2) Emoticon choose 3) Nickname 4) E-mail 5) Message. Fourth: Latest Comments Posted and Latest Articles posted. If i post a new article , or someone gives a new comment to one of my posts ... i want it to be conthorized on Meta List. Well ... sorry for disturbing , i need a straight help. Sorry too if i had bad language. Waiting for fast reply . Thank you all I don't understand how to get the numerical value of hex codes. The book does not give a good example I think. They give #CC6600 with the instructions Start with the hex number for the red which is CC, take the right most number [C] and write down it's decimal value which is 12x16=192 then add 192+12=204. Now the book gives as an exercise the #b817e0 but the answer they have is [11x16]+8=184 If I follow their instructions above and take the right most number of b8 which will be 8 then shouldn't it be 8x16+8? I am working on a webpage that is more than likely going to need to allow downloadable content. I am not quite sure how to go about this. Most likely its going to be video files downloaded and i want to find the most secure way to go about this. I am really in need of this info as i am on a deadline. Please Help iam a ha of a league for my league and i am trying to figure out the html codes i would love to put up the rules for the tds for the pages but i have no idea how. Ok, i'm trying to make a simple website for a call of duty clan(in norwegian) and i'm having some problems with some of the images. If you click this link: http://weex.tk/info.html there is supposed to be 2 pictures, but they wont show up. The image sources and stuff is ok, but they wont show up. my 2nd question. How can i remove the blue/purple squares around the buttons?? Thanks! Hi, Could anyone say what the exact color codes for every color on this picture are for HTML? Or should I take colors, which look almost the same? Or Do i have to mix colors myself? uhh hi!.. i'm very new here and i'm relly hoping that you guys will help me.. My popups work great on firefox.. but when i try it on explorer it won't work. i really need to fix it coz all my friends' browsers are explorer... site is freewebs.com/bamc05 it's on the members page... Thanks! I need this shoutbox intergrated into my forum. I have two codes a quick login and shoutbox code. Pm if you need admin panel. Quote: <iframe src="http://www.taghost.net/sme_tag.php?u=MarvinG2" name="taghost" frameborder="0" width="800" height="300" marginwidth="0" marginheight="0"></iframe><form action="member.php" method="post"> <input type="hidden" name="action" value="do_login" /> <span class="smalltext"><strong>Quick Login:</strong></span> <input type="text" class="textbox" name="username" title="Username" value="Username" onfocus="if(this.value == 'Username') { this.value=''; }" onblur="if(this.value=='') { this.value='Username'; }" /> <input type="password" class="textbox" name="password" title="Password" value="Password" onfocus="if(this.value == 'Password') { this.value=''; }" onblur="if(this.value=='') { this.value='Password'; }" /> <!-- start: gobutton --> <input type="submit" class="button" value="Go" /> <!-- end: gobutton --> </form> This might help: http://htmledit.squarefree.com/ Hi I'm new around here and new to html as well so pardon me if I posted this under the wrong section. I currently have a navigation bar using the following codes to swap innerHTML within the page. Code: <span class="navs" onMouseover="this.style.background='#666666'" onMouseout="this.style.background='#000000'" onClick="document.getElementById('main').innerHTML=document.getElementById('About Us').innerHTML"><center>About Us</center></span> And Code: <script> function changeNavigation(id) {document.getElementById('main') .innerHTML=document.getElementById(id).innerHTML} </script> Which gets me to Code: <div id="About Us" style="display:none"> Stuff about IAS </div> I now want to make a menu at the bottom of the page to quickly jump to other pages since the navigation bar is at the top. Therefore I am using the form code as such Code: <form name="selecter" id="selecter" action=""> <select name="select1" id="select1" size="1"> <option value="none"> Quick Jump <option onClick="document.getElementById('main').innerHTML=document.getElementById('About Us').innerHTML"> About Us</option> </select> </form> However, when I select the option "About Us" in the menu, nothing happens. Could someone explain to me why nothing happens and perhaps provide a solution? Thanks in advance. I was just wondering, is there such thing a a forum in HTML? We all know that you can get things such as HTML codes for chat rooms, etc, so If thats possible, I was just wondering if you could get a code which you can put on your website to have a forum. Doesnt have to make accounts or sign in or anything. If you know anything, please post! Thanks! Hi! I'd appreciate if someone could help me come up with a valid code to: 1) Create a table that will present a choice of thumbnail pics that you can click on that will present the image in a larger box above the choices. Crappy example: http://s609.photobucket.com/albums/t...icturehaha.gif 2)How to make this page scroll.: http://carsonvalleypowerwash.com Thank You! Hey there, I registered in hope of getting some help I'm creating this bulletin board in our intranet and I really need to add couple of buttons which would help our users with posting their stuff. The board obviously understands HTML and this is what I want to do: I need to have a button that adds html tags into the textfield when clicked. For example if I wanted to add <br> in the post, I just would have to press a button to do it. Hope you understand what I mean and hope you can help me, I'm such a newbie when it comes to this Cheers! |