HTML - Link Changer
Hi Guys, I am building a unique raffle site for my high schools website and I could use some scripting help.
I have a "Get a Raffle Ticket" image/link, but I need a code that changes that link whenever it is clicked. I have about a thousand links that all download the .txt file with that persons lotto number. Also, that certain link may only be clicked once and may never show up in rotation again. That way, no person will get the same ticket. Is it possible to also make it that someone from the same Ip address can only click the button once? That way, no one can get more than one ticket! I know this is a lot to ask, and you help is greatly appreciated! Thank you!!!! Similar TutorialsI am making one in html without cookies all i want it to do is change the bg color and text color i have: HTML Code: <form action="Change BG" align="left"> <select name="Theme"> <option OnClick="document.bgColor='white';" value="White">White</option> <option value="Blue" OnClick="document.bgColor='blue'; ">Blue</option> <option value="Black" OnClick="document.bgColor='#000000'; ">Black</option> <option value="Pink" OnClick="document.bgColor='#ff00cc'; ">Pink</option> <option value="Grey" OnClick="document.bgColor='#555555'; "selected="selected">Grey</option> </select> </form> As you can see i have already made it so i can change to bg but not the text. Any idea how to? I have several links on my site, all in the form of <a href="http://www.mywebsite.com">mywebsite</a> How do I need to change it such that a new instance of the browser is used in which the linked site is displayed. Hi, I'm newly registered and seeking some assistance. I'm working on a website for a client and come across an issue. The following is my iFrame code: Code: <div id="iframez"> <iframe src="main.html" width="100%" height="400px" name="framez"></iframe> </div> I have a link that is at the bottom of the page that is supposed to load in the iFrame when clicked upon. The code is as follows: Code: <a href="somelink.html" target="framez">some link</a> What I want is when the link is clicked that it loads in the iframe (this works as intended) AND I want the page to scroll up to the iframe. I tried doing this without success: Code: <a href="somelink.html#iframez" target="framez">some link</a> This is interpreted as #iframez in somelink.html, and not the page its on. Is there any way around this? Thanks for your patience. Ive been working on a website in my free time, and I have been wondering if it's possible to hover over a link, and change the text color of another link. A picture of one of my web pages is shown in the link below. http://i223.photobucket.com/albums/d...screenshot.jpg I want to be able to hover over something from the side navigation bars and have various links in the bottom naviational bar change color. So like hovering over Blood Elf, would make Death Knight, Mage, Paladin, Warlock, Priest, Rogue, Hunter turn red Does anyone know how to do this? or even know if it is possible? Hi im not sure if this can be done i have created some buttons to use as links and once i put the a href code in a box appears around the button can i remove this and how plz you can see example of what i mean on my website i have made Home and Contact clickable but i want to remove the box thats around the button if possible http://dreamteam0708.co.uk/ for info: im coding my own html in notepad, not using any programs or anything and my hosting doesnt support php etc Okay, i have a menu down the left side of my webpage with numerous buttons. i want it so when i click a button, the image in the centre of the page will change to the image assigned to that button without opening a new page. any ideas? I need a way to open two pictures at once by clicking on a single link. I have pictures of the fronts and backs of coins. I want to be able to click on a link and have the front and back pictures open side by side. Hello, I am creating a clickable link with an image for my site in order to display on other sites. I have managed to do it but I was wondering if somebody knows how to make the link pop up in a new window rather than open on the existing page. <a href="http://www.raphaelabramov.com/" title="Raphael Abramov Photography"><img src="http://farm6.static.flickr.com/5133/5462888784_7e944fca61.jpg" width="292" height="50" alt="Untitled-2" /></a> I want to set up an ftp link. <a href="ftp://....."> How do I set this up incorporating the login name and password in the link? Thanks! Ok here is what i am looking for. I am looking to make a small picture and make it a clickable link to a url that will work in a forum post. Thanks in advance, Chris. Hi, I have the following line in a php document and for whatever reason the "ENTER" text shows up in Firefox as a hyperlinked word but in IE it just shows up as normal text (however clicking on the text in IE still launches the swf). Can anyone offer some insight into how to remedy this problem? <div id = "enterblock"><font size = 6>                     <a href onclick="openFullScreen('EbbFlowTest.swf','dugFull','status=yes,scrollbars=yes');return false; self.close()" >ENTER</a></font><text>    (Flash player required)</div> Thanks, Mike im fairly new to html, i need a code to make a link so when it is clicked on it opens the page in a new window. i completely forgot how to do this. I have a link bar that I would like to show up at the bottom of all the pages on my website. Could I put some sort of tag at the bottom to load the bar? I don't want to spend the time to add it to all my pages. Example: page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff Home videos software A menu bar like this on every page I know it's used to link to a css document, but, I've also seen it used in other situations. So what other uses are there for the <link> tag? Is it kind of like an include? I've tried looking this up on Google, and every example use I can see for it is for linking the css document. And the descriptions are basically the same as the examples. I hope somebody here can help me. I have altered a PSD web template and saved it using ImageReady as html and images. When I open the html page in Dreamweaver, I can see the page as I have done it. When i clik on the first image and insert a link for it, the page shifts out of place. Anybody any idea why? Thanks in advance Colin Hey folks. So i'm pretty new to all this...so bare with me. but i would like to make a link where when the viewer clicks on it, it will redirect them further down the page. For Example: you click on "pictures" and then it will auto scroll you further down the page to where the pictures are. What is the html to do this? Thanks Alot. Cody I am a noobie on building sites. I have been messing with my site for a few months now. I am trying a new image rotator that has clickable buttons in it however I can not get them to link to something. Please tell me how I can link this tag so it goes to the desired location: <button type="button"><span><span><span>Get Packing!</span></span></span></button> I am trying to implement some HTML code where the user is able to click on a letter of the alphabet and it would return a row of data with that letter. The row of data is from a SQL query. How would I i mplement that into HTML? Here is a bit of the code I am trying to implement. How would I be able to return a row of data with the same letter as each link?? <a id='A' href="#" onclick="('A'); return false;"><span class="alpha">A </span></a> <a id='B' href="#" onclick="('B'); return false;"><span class="alpha">B </span></a> Good morning! I have a problem with a couple of select boxes. I need more than one, due to the size of the list, but I want it so if they choose an option in the first box, then choose an option in the second box, it will deselect the option in the first one. So for example, if these are nested side by side in a table... <td width="20%"><form> <select name="selectMain" size="16" id="selectMain" onChange=" if ( value == 0){ selects (id);} if ( value == 1){ selectc ('Test1',id);} if ( value == 2){ selectc ('Test2',id);} if ( value == 3){ selectc ('Test3',id);} "> <option value="1">Test 1</option> <option value="2">Test 2</option> <option value="3">Test 3</option> </select> </form> </td> <td width="20%"><form> <select size="16" id="selectMain" onChange=" if ( value == 0){ selects (id);} if ( value == 4){ selectc (Test4',id);} if ( value == 5){ selectc ('Test5',id);} if ( value == 6){ selectc ('Test6',id);} "> <option value="17">Test 4</option> <option value="18">Test 5</option> <option value="19">Test 6</option> </select> </form> </td> If someone chooses Test 1 in the first box, it highlights it and displays that content. And if they choose Test 4 it removes the Test 1 content, highlights and displays the Test 4 content. But it leaves Test 1 highlighted as well. There is a lot of missing code here... But hopefully you get the picture. Is there a way to make it so that when they choose Test 4 it will remove the highlighting from Test 1 in the first form? Thanks so much for your help! I have been beating my head on a wall! =D I'm preparing an old logbook to put up on my site. Each page has a 'previous' button and a 'next' button. The first page is the Captain's introduction: the purpose of the voyage, how he keeps his log, etc. The second page is the start of the log itself. The intro page is log000.html, the next page is log120187 and the next page is log120287.html. The next link on log000.html is: <a href="log120187.html"> <img src="../images/bNext.jpg" alt="Logbook 12/1/87" width="80" height="68" /></a> The previous link on log120287.html is: <a href="log120187.html"> <img src="../images/bPrevious.jpg" alt="Logbook 12/1/87" width="80" height="68" /></a> IE will follow the second link, but not the first. FF follows both. I'm stumped. I have 9 pages completed and this is the only link IE won't follow. Any and all help appreciated. Jim |