Jump to content

King_Karlssen

Members
  • Posts

    16
  • Joined

  • Last visited

Everything posted by King_Karlssen

  1. I'm still confused man, I need code. I dont know how to do half the stuff you said. Internet Explorer is my Browser, and if I put the files into a zip won't they be downloaded as a zip? And did you say something like I need to prompt it to save the file? Like javascript prompt?
  2. I asked about this a while ago, I need help figuring out how to make a download, I was told this <a href="filename.extension", target="_blank">Download here</a> But unfortunately that just loaded a new page and played the file! I need help to make it so the file is downloaded onto their computer, And its actually a colllection of files in one folder, I need all the files, (all .mp3 files)To be downloaded with one hyperlink, how do i do this?
  3. For my website, http://www.kingkarlssen.net , I'm try to make a download, which I know how to do know thanks you guys, a download that everytime it is downloaded, it will change the number of times its been downloaded. I want to display the number of how many times the file has been downloaded, and have the site keep accurate track of how many times it has been downloaded. So if it has been downloaded 7 times, I want it to say, "Downloaded 7 times" etc. I know how to create a function and variable for this but it refreshes everytime and starts back at zero. Anyone know how to do this?
  4. Well I though I had it working but gonna need some more help.... here is some code that worked for me: <html> <head> <title>Javascript#8</title> <body bgcolor="cyan"> <script type="Text/Javascript"> lanyardcruzer=new Image; lanyardcruzer.src="Pictures/lanyardcruzer.jpg"; cruzermini=new Image; cruzermini.src="Pictures/cruzermini.jpg"; </script> </head> <body> <center><table border="0", width="75%", height="30%", bgcolor="cyan"></center> <tr> <td><a href="http://www.kingkarlssen.net", onMouseOver= "status= 'This is my personal website'; return true;" onMouseOut= "status= 'The last link you had the mouse over was a link to my homepage'; return false;"> King Karlssen Homepage</a></td> <td><a href="JCarlsenjava7.html", onMouseOver= "document.flash.src=lanyardcruzer.src, status= 'Sandisk is the brand of flash drive I use.'; return true;", onMouseOut= "document.flash.src=cruzermini.src, status= 'That last goes to one of my assignments.'; return false;"> <img src="Pictures/cruzermini.jpg", name="flash", height="75", width="140", border="2", alt="Sandisk is the brand of Flash Drive I use"></img> </a></td> <td><a href="http://www.zone.msn.com", onMouseOver= "status= 'This is where I play online games.'; return true;" onMouseOut= "status= 'That last link goes to the zone.'; return false;">MSN Gaming Zone</a></td> </tr></table> <script type="Text/Javascript"> </script> </body><HR> <address><center><b>©J Carlsen, 2005</center></b></address></html> And and look for the code I added and now none of the mouse over image changes work: <html> <head> <title>Javascript#8</title> <body bgcolor="cyan"> <script type="Text/Javascript"> lanyardcruzer=new Image; lanyardcruzer.src="Pictures/lanyardcruzer.jpg"; cruzermini=new Image; cruzermini.src="Pictures/cruzermini.jpg"; zone=new Image; zone.src="Pictures/zone.jpg"; Age-of-Empires=new Image; Age-of-Empires.src="Pictures/Age-of-Empires.jpg"; </script> </head> <body> <center><table border="0", width="75%", height="30%", bgcolor="cyan"></center> <tr> <td><a href="http://www.kingkarlssen.net", onMouseOver= "status= 'This is my personal website'; return true;" onMouseOut= "status= 'The last link you had the mouse over was a link to my homepage'; return false;"> King Karlssen Homepage</a></td> <td><a href="JCarlsenjava7.html", onMouseOver= "document.flash.src=lanyardcruzer.src, status= 'Sandisk is the brand of flash drive I use.'; return true;", onMouseOut= "document.flash.src=cruzermini.src, status= 'That last goes to one of my assignments.'; return false;"> <img src="Pictures/cruzermini.jpg", name="flash", height="75", width="140", border="2", alt="Sandisk is the brand of Flash Drive I use"></img> </a></td> <td><a href="http://www.zone.msn.com", onMouseOver= "status= 'This is where I play online games.'; return true;" onMouseOut= "status= 'That last link goes to the zone.'; return false;">MSN Gaming Zone</a></td> <td><a href="JCarlsenjava3.html", onMouseOver= "document.game.src=zone.src, return true;", onMouseOut= "document.game.src=Age-of-Empires.src, return false;"> <img src="Pictures/zone.jpg", width="97", height="76", border="2", name="game"></img> </a></td> </tr></table> <script type="Text/Javascript"> </script> </body><HR> <address><center><b>©J Carlsen, 2005</center></b></address></html> I do realize that I need to put all the pictures memory loads (in the head script) Into some kind of function and call them in the OnMouseOver, I want to keep the status bar text change, do i need the document.blah.src=blahblah stuff? How can I make the pictures in the head script into 2 separate functions an call them in the onMouseOver? And do I need to call them again or close them in the OnMouseOff?
  5. Cool thanks guys, you really know your stuff!
  6. Thanks this is exactly what I'm looking for! And my page for it is working thank you!
  7. I'd like to but its not gonna happen. Maybe someday. I could buy it myself with money I've saved but that money if for a professional Trumpet. Thats what I'm going to college for, music.
  8. So when you have the function then (this) do you actually put (this) or the name of the picture, I'm still confused and can't get it to work
  9. If anything is a little messed up with my post, I apologize. I just stated learning web page programming last summer. So the exact code is hard for me to remember sometimes.
  10. I'm trying to figure out how to make a new image appear when i have the mouse over a certain image. Heres the code:<html><head><title>Javascript#8</title><script type="Text/Javascript">lanyardCruzer=new Image;lanyardCruzer.src="Pictures/lanyardcruzer.jpg";miniCruzer=new Image;miniCruzer.src="Pictures/cruzermini.jpg"; </script></head><body> <a href="JCarlsenjava7.html", onMouseOver= "document.lanyardcruzer.src=lanyardcruzer.jpg, status= 'Sandisk is the brand of Flash Drive I use.', return true;",onMouseOut= "status= 'The last link you had the mouse over was a link to a Sandisk picture', return false;"><img src="Pictures/cruzermini.jpg", height="75", width="140", border="2", alt="Sandisk is the brand of Flash Drive I use"></img></a> </body></html> Anyone know what to do? My instructor tries but hasn't taught this class in ten years and forgot almost everything.
  11. Okay, that looks like it'll work, I wasn't sure how to make a function in javascript go to another page. what I was using was this <html><head><title>Home Page</title><body><form><a href="http://www.kingkarlssen.net"><input type="button", value="King Karlssen HomePage"></a></form></body></html>
  12. cool, thanks, I'll give that a try, unfortunatley I can't untill the weekend, parents divorced, and the computer is at dads. thanks though!
  13. You can also use absolute positioning. <img src="...", style= "positionabsolute: left:'157px', top:'528px', z-index:'1'; ">You can also use percentages not only pixels when using abosolute positioning. The z-index is not necesary unless you have over-lapping pictures. The highest z-index is the picture on top. And so on.
  14. I'm trying to create a standard button on my webpage, www.kingkarlssen.net, a button that links to another page. An Href isn't working. I could use a navigation bar, but thats my last resort. I need to tell it when some one clicks it ( onclick="..." ) to go to another page. I also tried to hotbox it but that only works with images. Maybe I need to put in some kind of return value option?
  15. So its that simple? Attach/Publish the file to your website, and anchor href some text to that file? It takes care of everything else? All the open, save, close stuff?
  16. I received a website of my own for christmas, www.kingkarlssen.net, I have taken a couple of code and design courses at school. But I can't find anyone that knows how to attach a download to a web page. Something some one can download from my site to they're computer. Anyone know how to do this?
×
×
  • Create New...