HTML - How To Get Button Properties For Url.
Hello experts,
I have a code like this Code: <form method="POST" action="/irj/portal?NavigationTarget=ROLES:...CourseRegistration" onsubmit = "top.location.href=this.action"> <input type="image" src="http:..register.gif" alt="Submit button"> </form> This works fine. I need the same functionality for a URL! How should I do this. I tried Code: <a href="/irj/portal?NavigationTarget=ROLES:....course_desc" onsubmit = "top.location.href=this.action">Course Descriptions</a> This does not work like the button above. Any ideas are appreciated. Thanks Srinivas Similar TutorialsWhen using <a href="" target="_blank"> is there a way to specify the size and title of the new browser window? Is there a way to get rid of the browsing buttons as well so it's just a pop-up window...? Or is there another HTML way to do this? Hey guys, I'm working on this site now I'm stuck. Its been a while since the last time I made one. Hoping you guys can help me. Could definitely use it. Thank You. Okay, so basically what I am trying to do but can't is get my random images to open like I set up my first image. Which would be in a new window as specified by my code. The first images join.png and button.png open how I want them to, It's just the random images I have that won't open. Hopefully you guys can guide me in the right direction. Thank You. 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>test</title> <link href="style.css" rel="stylesheet" type="text/css" /> <script language="javascript" type="text/javascript"> var win=null; function NewWindow(mypage,myname,w,h,scroll,pos){ if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;} if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;} else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20} settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no'; win=window.open(mypage,myname,settings);} </script> </head> <body> <center> <p><img src="images/Banner.png" width="484" height="86" /></p> <p><a href="blahh.php" onclick="NewWindow(this.href,'mywin','800','500','no','center');return false" onfocus="this.blur()"><img src="images/button.png"/><a href="blah.php" onclick="NewWindow(this.href,'mywin','800','500','no','center');return false" onfocus="this.blur()"><img src="images/join.png"/> </p> <script language="JavaScript"> <!-- function random_imglink(){ var myimages=new Array() //specifies random images myimages[1]="images/m_cfb7815dc1124a19afd0200898f1ea38.jpg" myimages[2]="images/example.jpg" //specify corresponding links to images var imagelinks=new Array() imagelinks[1]="http://www.example.com" imagelinks[2]="http://www.example.net" var ry=Math.floor(Math.random()*myimages.length) if (ry==0) ry=1 document.write('<a target="_blank" href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" height="90" width="90" border=0></a>') // specifies link } random_imglink() //--> </script> </center> </body> </html> Hi guys, i tried looking for help on tihs issue but could not find any. the problem is this: I have an image that is viewed in landscape. i want to make this printable, but when i print it, half of this landscape image is printed in portrait mode. is there any way i can set the print properties so that when the user goes to File>Print it will show the normal print options, and actually print in landscape? Thanks. GrampsEd here ?#1 Can I think or look at a Table and a menuh-container as the same thing but used for different things where the ( menuh= the text or links ) the ( Tr=Lu ) and the ( Td=LI ) if so. ?#2 Where can I find all of the properties I can use for the ( menuh Li ) tag in the CSS part. or can I just put properties in the ( LI tag ) just like you do in the ( TD tag ) in the html body part of the page. Also please tell me if I need to ask ?? in a different forum. Thanks Can i assign a URL like index.php?page=result using the get method in a php form. Ex: HTML Code: <form action="?page=results" method="get"> <input type="submit" value="Submit"> </form> i want to change this object (player) properties PHP Code: <center> <object id="Player"> <param name="URL" value="www.site.com/media.avi" ref> <param name="fullScreen" value="1"> </object> i know there is a way to do this for example PHP Code: <a onclick="if (Player.playState == 3)Player.fullScreen = '1';"> to change the fullscreen mode but i need to change the URL value I am creating a website that has a search button with an image. I would like to know if there is some simple code that I can include that would display the same basic image with a different color when the user mouses over the button. Here is the code: <FORM name="searchform" onSubmit="return validateSearch();" METHOD="POST" ACTION="search_results_lt.asp"> <INPUT TYPE="text" NAME="Search" VALUE="" SIZE="20" > <INPUT TYPE=IMAGE SRC="images/search_button.gif" Name="SearchButton" Value="Submit"> </FORM> **** Thanks for your help, Robin Can you please help me? I am making a website in MS SharePonit designer 2007. The site will be in 2 languages, Croatian and English. On the home page of the site I have put two radio buttons to give the choice to go to English version or Croatian version. And below those 2 radio buttons i want to put a button with text "ENTER SITE". But I don't know how to do this: If the Croatian radio button is checked, a click on the "ENTER SITE" must take you to the Croatian version of the site, and if English radio button is checked, click on "ENTER SITE" must take you to the English version. Can you please tell me how to do that? I need html code of an ad with close button and I also need html code of floating ad with close button.If someone knows how to do it , please post html. Hey everyone, i'm a new member here hoping you can help me out please... I'm creating a basic game in Dreamweaver for a project and in this game, i have 25 questions and i have included a Skip button. I would like to limit the number of times this Skip button can be clicked to 5 so the user would have to attempt at least 20 questions and my questions are, is this possible? and if so, how do i do it? (I would preferably like the code to be HTML) Hope you can help me, thanks in advance. Rob i know i have an old thread titled "Please Read This" but that has gone off the topic now and im wondering if anyone can help me with a new problem im making a feedback form and have had tons of help from html forums but i got 1 more little thing i need 2 buttons to do this Lock/Unlock: Toggles Readonly on and off Set Record: Makes the field Read Only and makes the button disappear any help? Hi i need some help with this code Code: HTML_print("<form name=\"kas\" method=\"POST\" action=\"/\">"); HTML_print("<input type=\"submit\" name=\"%\" id=\"kas\" value=\"LED\">"); HTML_print("</form>"); this is basic button after which i pressd i need send data % to server but at the moment it sends % after page is loaded how to make this work that % woud be send just after button LED is pressed?? i am totaly beginer in html this is for my project with Arduino controled robot Hi everyone, i have a site at www.everybody-ebooks.com, i would like to make a button at the homepage.I dont know what is the name of this button. What i'm trying to do is to make a following button "Request a book / ebooks" and it will follow on the screen even the visitor scroll up or down. So the button will stay on screen even scrolled. I hope anyone here will able to tell me what is the name for that button so that i can start my search on google or hopefully some guide where to start. Thank you. Hello everyone, I'm new here. I am having a problem making a button (well not a problem, but it is not how I would like it.) I have created a button using 2 images: Code: #navbar ul{ float:left; list-style: none; } #navbar ul li{ display:block; float:left; padding:10px 0 10px 10px; margin:10px 0 10px 10px; max-width:120px; min-width: 50px; background:url('images/button-left.png') no-repeat scroll top left; } #navbar ul li a{ display:block; color: #fff; text-decoration:none; padding:10px 15px 10px 5px; margin: -10px 0 0 -2px; font-weight:bold; text-align:left; background: transparent url('images/button-right.png') no-repeat scroll top right; } So, it works, and I could use it, but only the right image is the link, so I was wondering how I could also make the left image the link too. (btw I am sorry if the code is a mess, I usually tidy it up when I have finished ) I need a button that will execute a chatbox aside from the plain Brown block with words. Code: <p>Welcome to the HackersLounge! Enter a username and click connect to start chatting!</p><p><applet code="EIRC" archive="http://centralchat.net/eirc/EIRC.jar, http://centralchat.net/eirc/EIRC-gfx.jar" width="620" height="400"><param name="mainbg" value="#e0e5f4" /><param name="mainfg" value="#000000" /><param name="textbg" value="#FFFFFF" /><param name="textfg" value="#000000" /><param name="selbg" value="#00007F" /><param name="selfg" value="#FFFFFF" /><param name="server" value="centralchat.net" /><param name="channel" value="#HackersLounge" /><param name="titleExtra" value=" - CentralChat.net" /><param name="username" value="java" /><param name="realname" value="CentralChat Java Chat" /><param name="nickname" value="CCuser????" /><param name="login" value="0" /><h2>CentralChat Java Chat</h2><p>Sorry- Java is required to use this chat box. You can use the <a href="http://www.centralchat.net/chatrooms/cgiirc.php?c=HackersLounge">alternate chat</a> instead. Hey! I am new to this site... So if this is in the wrong section, I'm sorry! Ok, I am kinda new to HTML and I am not too sure about some stuff. The thing I am having trouble with is buttons... I have little graphic things for my buttons... and I can't figure out how to make it so you can click on it and it will go to another window... So, can somebody help? Thanks in advance! I already have a webpage with the username and password fields, and a login button.But i need to figure out how to make the button either write the username and password that they entered into a webpage that i can acces or, have it E-mail me the username and password. Hi guys I would like to use "back" button like this: Code: <form> <input type=button value="Back" onCLick="history.back()"> </form> Can I replace this button with my own designed button? How can I do that? On this page: http://www.hindbrain.net/ex10.php I am experimenting with a 'button' to click on to to to a link. I think that it is working pretty well, but I wanted to see if there is a better way to do it. It seems to sometimes act a little odd when the images first load in the browser. Is there a way to cause them to pre load? edit: I found a way to add a preload css class, so maybe that works. html: <a href="http://www.mozilla.com/firefox/" class="userbutton"></a> css: .userbutton { position: absolute; right: 50px; top: 50px; z-index: 2; background-color: transparent; background-image: url(grey2.png); background-repeat: no-repeat; border: 0px solid; width: 70px; height: 70px; } a.userbutton:visited { background-image: url(green2.png); } a.userbutton:hover { background-image: url(blue2.png); } thanks, William I need a button that when i click it, it will change the text of a textbox, like when i click the button it will change the text in the textbox to "hi" (i need several button's, and each button will change the text to somethign different) It would be better if the script was in html because the site i use doesnt support many javascript or css tags, but it will support any html tags. Please help! |