HTML - How To I Call Two Links In One Click?
my website has 2 frames that have to change all the time(main content, and news), so sometimes when I click on one link(from navigation), I want it to call two links for me(one of them changes main content, and one of them changes news).
for exampe, how to I call two links from below in one click? <a href="index.php?news=hi">Hi</a> <a href="index.php?news=hello">Hello</a> I tried something like this but it doesn't work : <a href="index.php?news=hi" AND "index.php?news=hello">Hi and Hello</a> I also notice there is a way to use "Onclick" function to solve the similar problem, but it does not fit in my code. Please, help me if u know the answer. thank you Similar TutorialsIs there any way to have one hyperlink change to another once it is clicked? And I want it to change to the link of the page of the member who clicked it. Also, I want it to not change if a someone who isn't a member clicks it. I was wondering if anyone knew what it means when links have that protocol at the end of them, like &Click=3949? My guess is that it is a way to track links to give the link giver credit. Is that right? Hi, I have a text link, when a user clicks it, I want multiple URLs to open in a new tab/window. I guess it's a javascript solution, yea? After searching the net for 30 mins I can't find anything. Thx in adv hi all, One strange issue with html <a> tags.We have XP English and Japanese machines and issue is getting only in XP Japanese machines. Issue is tat on clicking any link,link font size gets increased and its comes over other links.Its like a new layer of big font sized links over the old links. Any idea why this happens? Following is my JSP section ============================= <div onselectstart="return false" id="systemMenu" style="position:absolute;top:-75px; left:-20px; "> <label>Screen # : </label> <input tabindex="1" suggest_sel_event="selectScreenIdValue" type="text" title="Provide screenId and Hit Enter key" id="screenIdEntry" name="screenIdEntry"/> <button tabindex="-1" id="SUGGEST_screenIdEntry" onclick="suggestScreenIds()"></button> | <a tabindex="2" href="javascript:selMenu('showHomePage.do','PARENT','')">Home</a> | <a tabindex="3" href="javascript:doHelpFunc()" onmouseover="">Help</a> | <a tabindex="4" href="javascript:aboutiCargo('<%=mainWebBuildVersion%>')" onmouseover="">About</a> | <a tabindex="5" accesskey="o" href="javascript:exitlogOffIcargo(ctxPath+'/logout.do','logOffApp')">Lo<u>g</u>off</a> | <a tabindex="6" accesskey="x" href="javascript:exitlogOffIcargo(ctxPath+'/logout.do','exitApp')" >E<u>x</u>it</a> </div> =================================================== CSS Used In the page ===================== <STYLE> body{ margin:-1px; scrollbar-base-color: #C6CEDE; scrollbar-arrow-color: #000000; scrollbar-track-color: #C6CEDE; scrollbar-face-color: #C4CED9; scrollbar-highlight-color: #C6CEDE; scrollbar-shadow-color: #C6CEDE; scrollbar-3dlight-color: #000000; scrollbar-darkshadow-color: #000000; } #footer{ position:absolute; left:1%; top:99%; width:97%; text-align:center; font-size : 8pt;font-family : Arial,Verdana,Sans-Serif; /*font:menu;*/ color : #000000; /*background-color:#CCCCCC; */ } .footer{ text-align:center; font-size : 8pt;font-family : Arial,Verdana,Sans-Serif; /*font:menu;*/ /*background-color:#CCCCCC; */ } div.footer table{ border-collapse:collapse; padding:0px; word-spacing : 0px; width: 99%; /*100% of container produces horiz. scroll in Mozilla*/ border: 0px; } div#systemMenu{ color:#ffffff; font-weight:bold; } div#systemMenu button{ border-collapse:collapse; color:#ffffff; font-weight:bold; font-size:12px; border: 0px none; background-color:1F3E6C; width:0px; height:0px; } div#systemMenu input{ /*font-family : Arial,Verdana,Sans-Serif; font-size : 8pt;*/ font:menu; width : 75px; height : 15px; color : #000000; text-transform : uppercase; background : #ffffff; border-right-width : 0px; border-bottom-width : 0px; border-left-width : 0px; border-top-width : 0px; border-top-style : none; border-left-style : none; border-right-style : none; border-bottom-style : none; border-collapse:collapse; } div#systemMenu label{ border-collapse:collapse; color:#ffffff; border: 0px none; background-color:1F3E6C; text-decoration : none; /*font-weight:bold; font-size:12px;*/ /*font-family: Trebuchet MS, Lucida Sans Unicode, Arial, sans-serif;*/ font:menu; } div#systemMenu a{ border-collapse:collapse; color:#ffffff; border: 0px none; background-color:1F3E6C; text-decoration : none; /*font-weight:bold;font-size:12px;*/ /*font-family: Trebuchet MS, Lucida Sans Unicode, Arial, sans-serif;*/ font:menu; } div#mainErrorDiv table{ padding:0px; word-spacing : 0px; width: 99%; /*100% of container produces horiz. scroll in Mozilla*/ } /*********************************FONT STYLES********************************/ .iCargoRedText { font-family : Arial,Verdana,Sans-Serif; font-size : 10pt; color : #336666; font-weight : bold; } .iCargoSmallText { font-family : Arial,Verdana,Sans-Serif; font-size : 7pt; color : #000000; } .iCargoPageText { font-family : Arial,Verdana,Sans-Serif; font-size : 10pt; color : #000000; } .iCargoErrorMessage { font-family : Arial,Verdana,Sans-Serif; font-size : 9pt; color : #336666; list-style-position : outside; list-style-type : square; } .iCargoInfoMessage { font-family : Arial,Verdana,Sans-Serif; font-size : 9pt; color : #000000; } div.loadBox { /*font-family: Arial, sans-serif; font-size:9pt;*/ font:menu; color: #FFFFFF; border: 0px none #FF3E3E; background-color: #1F3E6C ; text-align: center; position:absolute; } </STYLE> Short Sersion: What the best way to make a link dragabal but not clickable while being dragged? Long Version: I have a bunch of icons links (in layers) that the visitor can drag over the screen and even remove if they want to. (it's totally cosmetic, and everything is reset as soon as the page is refreshed, but it ads a level of detail - hence why am doing it) Since this is an unnecessary function it cannot interfere with the visitor’s ability to use the site smoothly. Therefore my issue; Since the links are dragabal, as soon as you click the link to drag it does what a link does and loads the page (after you release/drop it) Fix 1. The Shift. The quickest fix is to set the top margin of the button to the height of the image of the button. This way when you click it the button is shifted down and the handle becomes the area above the button, this way you can’t click the button while dragging. This does somewhat kill the effects, it looks a little odd when you go to click and drag the link and suddenly the links shifts down and you are holding the empty space above it. But it does solve the problem very simply and there for should be considered. Fix 2. The DblClick This is even a simpler fix to fix1 but it could interfere with the usability of the site… Setting the link to activate on a double click instead of a single click. This way the click to drag the button doesn’t activate the link. http://www.htmlforums.com/showthread.php?t=84281 Fix 3. “Block Layer” Another thought is to show a hidden layer when the drag function is activated this will block the link from being clicked. The “block’ layer can be hid again once the button is dropped, or in my case since I am already using the on drop event and have “only when snapped” checked, set the “block” layer to hide on mouse out, and assign a onclick link to the “block’ layer as well, incase the visitor tries to click the link after dragging it without mouseing off it first. This as far as I can see is the best compromise, however it adds a lot of additional code and mouse events that could effect the performance of the page. The best fix would be to disable the onclick event while dragging but I am not sure how to do that, and if you even can. Additionally I would assume that if disabled, the onclick event would need to be enabled after dragging, and since I am already using the on drop/ when dropped event and have “only when snapped” checked that could pose a problem. Any thoughts? Hi everyone, I hope I have posted this in the right area. This is my first time posting here. I currently have my main pages listed at the top of my site as graphics (see fussybaby.ca). I would like to potentially remove these graphics and use text links instead - I had the graphics designed for me, so I can't just go in and make new ones, however I'd like to change/rearrange the links and add some new ones. So my question is: How hard is this to do? Is this something I need to hire someone to do for me? Thanks in advance for any advice! Is it possible to create a page with a video on it that will come up for like 10 seconds, while the page that was clicked on loads and then redirect/go to the page that was loading? Thanks for the help if this can be done. Any comments would be greatly appreciated! I am creating very simple Adsense websites for novice programming moms. I have my tables set, I need a header to display Google Adsense within one of the top tables on all 80 pages of content. In PHP we refer to the process as "Calling". I need to call the header to each page. Frames won't work, have to use tables. I would like to make a header that contains the Adsense info, so when there are 80 pages of content the newbee mom programmer doesn't have to add google adsense separately to each of the 80 pages. Its difficult enough to get them to do it once without saving the template as a .txt file. If I can just write the instructions so they can open 1 header file, pop in the adsense code in a large open area then save it using a html ext. it will be a life saver. Then I just have to explain ftp - wish me luck. (I am use to hacking up PHP scripts, sad to say I hack well, I program badly.) I have probably over explained this, sorry. Thank you for any help you can give, ~eDee Hi, I'm new to xml. I have a cgi application which writes out a html page. Now I need to display the page with xml tag. So my cgi code takes an input, and writes out Code: cout<<"Content-TYPE: text/html\n\n"; cout<<"<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"; cout<<"<disease cnt=\"2\">\n"; cout<<"<name>heart disease</name>\n"; cout<<"<name>breast disease</name>\n"; cout<<"</disease>\n"; At the web site h..p://......./disease.cgi?term=heart+disease+breast+disease It only displays "heart disease breast disease" on one line. If I save the ouput to a file test.xml, it displays <disease cnt="2"> <name>heart disease</name> <name>breast disease</name> </disease> This is the display I want. How to get this display by calling that cgi program? Thanks a lot for any help!!! Need to call a few div tags into 15 odd webpages but i wanted to store the divs in another file so i can edit all of them at once here is the div tags i need to import to the body of all my pages <div id="sidemenu"> <div class="menustyle" onclick="ChangeMenu('subm1')">Home</div> <span class="subm" id="subm1"> - <a href="index.html"><strong>Welcome</strong></a><br /> - <a href="about.html">About Us</a><br /> - <a href="contact us.html">Contact Us</a><br /> </span> <div class="menustyle" onclick="ChangeMenu('subm2')">Home</div> <span class="subm" id="subm2"> - <a href="breakfast.html">Breakfast Menu</a><br /> - <a href="Cafemenumain.html">Lunch Menu </a><br /> - <a href="drinks.html">Drinks Menu </a><br /> - <a href="dessert.html">Dessert Menu </a><br /> - <a href="contact us.html">Keep in Touch</a><br /> </span> </div> It is longer than that as i have six menus but thats not important. so can someone tell me how to call this div into the body of a html page? Ok cheers e hi all....well im a bit stuck as im trying to research into obtaining the code for an image gallery, like seen here- http://www.nessherry.co.uk/fashion/f...junky_book.htm ...where you click on the image and it's displayed on the same page in a larger table. does anybody know what this is called exactly?? the source doesnt appear to have javascript.... thanks! Hi, I am newbie in creating web page. I am wondering can I create a html button to call the perl script. Is this possible? I am very new to using PHP, so the question is: Have an existing HTML web page which has a call to a PHP file to send out email using the form tag and on submit. Wrote a PHP file to get a variable from HTML page, query mysql database and would like to send information back to existing HTML and refresh the HTML page. Is it possible to call this PHP file from the OnChange of the input tag of the variable from HTML page. If not, how can it be called? In my art page I have a series of thumbnail, when you clcik on them a javascript function is used to show them in fullsize next to all the thumbnails. However sometimes I want to link to my art page with a certain thumbnail expanded. How can I achieve this. This is what i have so far but its not working Code: <a href="art.html" onlcick="expandThumb("expandSrc")">thumb4</a> Thanks in advance Calypso On my website, there is a Gallery of several pictures and I made a special page for use as a popup, which matches the main website with the one image (the popup is to show the image larger, when clicked on from the gallery) However, I do not want to make 50 duplicate pages for use as a popup (click for larger image), I would rather have the one page then in the main gallery, call whichever photo should be in the popup. As an example of what I'm trying to do (not the code I'm using, but rather trying to make myself clear: Main page: <a href="popup.html" onclick="return popitup('popup.html') ImageToUse="classic001_lg.jpg""><img src="classic001_sm.jpg" width="320" height="268" border="0" /></a> Then in the popup: <img src=ImageToUse width="650" height="506" /> Thank you, - Randy is there a way on clientside, to perform a "click" programmatically on a TD? if so, how? its kind of like doing the submit() on a button, except I want to perform a click/submit on the TD So I've been trying to set up a search box to blank out its default text when clicked, and reappear when it goes away (if empty). The script works fine--I know that much. However, when using it inside a table inside a form, it seems to fail every single time. Even "this.value=' ' " falls flat on its face. I'm relatively new to HTML, so please bear with me. Below is the script, a text box it does work in, and then the box I'm trying to make it work in. Quote: <script type="text/javascript"> function clickIn(field){ if (field.value==field.defaultValue){ field.value=''; } } function clickOut(field){ if (field.value==''){ field.value=field.defaultValue; } } </script> <form> <input type="text" name="text" id="test" value="test" onfocus="clickIn(this)" onblur="clickOut(this)"/> </form> <form> <tr> <td style="border-style:solid;border-color:#4B7B9F;border-width:1px;"> <!--Search Box Dimensions--> <input type="text" title="Search Terms" name="lookfor" id="search" value="Search the Catalog" onfocus: "clickIn(this)" onblur="clickOut(this)" style="width:300px; border:0px solid; height:50px; padding:0px 3px; position:relative;"/> </td> <td style="border-style:solid;border-color:#4B7B9F;border-width:1px;"> <!--The search button--> <input type="image" value="Go" src="Search Button.jpg" style="border-style: none; width: 50px; height: 50px;"/> </td> </tr> </table> </form> this might be a stupid question, but what would the coding be to disable right click on my page? thanks. hi hoping to stop people from using my images on my website. i have a javascript which stops no right click on images, but due to Internet Explorer security it blocks all scripts which then image is open for stealing. Any ideas on how to get around this? i've tried a transparent image but it don't work. many thanks mark Hi: My simple website has 4 .jpg pics on it (one in each corner of the page) and text all thru the middle. These pics (and test) show perfectly when my form is first loaded. However, when the user 'clicks' on the submit button, and I re-send the same page, those four pictures disappear and the 'alt=xxx' statement appears in place of the pics. THe text still shows perfectly. Question: Why don't the pics appear on the second and subsequent times ?? I'm puzzled, because the page I'm sending is identical in all cases. Thanks for any insights on this. -Mel Smith Mesa, Arizona |