Jump to content

VatsaL

Members
  • Posts

    7
  • Joined

  • Last visited

VatsaL's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. I press a button.A popup opens, showing me a list of links.I click on a link.The popup closes, and the new link opens in a new window at the same time.what should I put instead of onClick=window.open('http://www.microsoft.com/','') or make any changes anywhere else, so that the link I click on opens in the original window where I pressed the button to open the popup?Also, how should I convert the checkbox links to the normal <a href> ones??here s the code: <html><head><script language="JavaScript" type="text/javascript"><!-- Copyright 2001, Sandeep Gangadharan --><!-- For more free scripts go to http://sivamdesign.com/scripts/ --><!--var X = 200; // change the # at the left for a fixed X co-ordinate to accommodate browsers other than IE or NSvar Y = 200; // change the # at the left for a fixed Y co-ordinate to accommodate browsers other than IE or NSif (navigator.appName.indexOf("Netscape")!=-1) {document.captureEvents(Event.MOUSEMOVE)function getcoords(e) {X = parseInt(e.screenX) - 80; // change the # at the left to further adjust the left-margin depending on the size of the windowY = parseInt(e.screenY) - 60; // change the # at the left to further adjust the top-margin depending on the size of the windowreturn true;} document.onmousemove = getcoords;function openWin() {if (navigator.appName.indexOf("Microsoft")!=-1) {X = parseInt(event.screenX) - 80; // change the # at the left to further adjust the left-margin depending on the size of the windowY = parseInt(event.screenY) - 60; } // change the # at the left to further adjust the top-margin depending on the size of the window display=window.open('','NewWin','menubar=0,location=no,status=no,directories=no,toolbar=no,scrollbars=yes,height=110,width=190') message="<font face='verdana, arial, helvetica, san-serif' size='2'><form>"; message+="<input type='checkbox' onClick=window.open('http://www.microsoft.com/','') onBlur='window.close();' />Microsoft Corp.<br />"; message+="<input type='checkbox' onClick=window.open('http://home.netscape.com/','') onBlur='window.close();' />Netscape Corp.<br />"; message+="<input type='checkbox' onClick=window.open('http://www.macromedia.com','') onBlur='window.close();' />Macromedia Inc.<br />"; message+="<input type='checkbox' onClick=window.open('http://www.symantec.com','') onBlur='window.close();' />Symantec Corp.<br />"; message+="</form></font>"; display.moveTo(X,Y); display.document.write(message); }}// --></script></head><body><font face="verdana, arial, helvetica, san-serif" size="2"> <form><input type="button" value="Some Links" onClick="openWin()" /></form></font></body></html>
  2. You have a point there. I might remove it, thanks.
  3. hey thanks, that wouldnt work, and I did want a border with the image, without that it looked tinyI replaced it with an image, the live search style. http://search.live.comthanks anywaysVatsaL
  4. Hello all,I am using a simple textbox with a customised button, much like a search engine text input.However, when I focus the cursor in the textbox, the customised submit button develops a dark black border, which I couldn't remove after hours of CSS.It goes something like this:At the time of printscreen, the CSS styling for the text feild was: .search{ border-left:1px solid #AAAAAA; border-right:1px solid #AAAAAA; border-top:1px solid #AAAAAA; border-bottom:1px solid #AAAAAA; background-image:url('magnifying-glass.gif'); background-repeat:no-repeat; background-position: left center; padding-left:20px; padding-top:2px; height:17px;width:323px} and the styling for the button was: .submit { cursor:pointer; margin-top:0px; border: 1px #AAAAAA; border-left: 0px; background:#FFFFFF; font-size:.9em; color:#666; font-weight:none; padding:0px; background:url(submit.gif) repeat-x left top; padding:0px; } Is that any way by editing the CSS to stop the black border appearing so that the submit button looks exactly as it was when it was not in focus?thanksVatsaL
  5. Yesss.. thanks! That was what I was lookin for. And the css enabled is not bad too.Thank youVatsaL
  6. Hello all,I had seen a "heading" effect in a dropdown box somewhere before, but can't find it now.Its something like this: http://www.b3ta.cr3ation.co.uk/data/JPG/dropdown.JPGwhere you can create a heading inside a dropdown box with just a simple html tag, if I remeber correctly.I cant find the code for it now.Anyone know how to create a heading inside the dropdown box? what code to use?thanksVatsaL
×
×
  • Create New...