hey i need help of all u guys.Actually the problem is that when i am loading this html page i just want the sign in page to appear and on click of cancel button i want a page to appear and on click of login button i get log in page..but the problem is that whenever i load my html page i get the sign in page and the page that is present on the cancel page..i tried showing and hiding and tried but i dnt know what more to do...please help me out..
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> </title>
<link rel="stylesheet" type="text/css" href="styling.css"/>
<script type="text/javascript" src="jquery-1.7.1.js"></script>
<script type="text/javascript">
It sounds like you are trying to make some type of modal-like dialog window appear on top of the page. If I were you I would look into using a jQuery plugin to do this. For example take a look at the jQuery UI modal dialog:
Looking at some of the source code on the sample pages may also give you an idea of how to structure your HTML and your JavaScript code better.
05-01-2012, 11:46 AM
crakcrack
The problem is i have three divs one is for log in that is when i click login button log in form comes.
Other for sign in that is when i click signin button sign in form comes.
One is cancel div or the one i have taggged as third_div..the problem is that when im loading i shld only be able to see the div with image or div with sign in form but im able to see both together..so what am i supposed to do????????
05-01-2012, 02:10 PM
Padonak
crakcrack, can you please describe what you want in easy words like:
this button clicked --> this div appears, this div disappears etc.