PULLING MY HAIR OUT!!!!
I have TRYED to work out this bug BEFORE going to DD for help (so don't get up in my grill
), because I always say to myslef "Come on, you don't need to ask for help with a problem like this". I fianly broke loose, and decided to post. When you press the button, it is suposed to open Windows Media Player and play the song that was in the address bar. It works fine with the link...
Code:
<html>
<head>
<style>
html, body
{
scrollbar-face-color:#EBF5FF;
scrollbar-base-color:#EBF5FF;
scrollbar-arrow-color:black;
scrollbar-track-color:#F3F3F3;
scrollbar-shadow-color:#EBF5FF;
scrollbar-highlight-color:#EBF5FF;
scrollbar-3dlight-color:#78AAFF;
scrollbar-darkshadow-Color:#78AAFF;
}
container
{border:1px solid black; background-color: lightyellow;}
</style>
<script>
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if (pair[0] == variable) {
return pair[1]; }
}
return "";
}
var song = getQueryVariable("song");
var mp3 = getQueryVariable("mp3");
document.title="Download: "+song;
</script>
</head>
<body background="bg.jpg">
<script> document.write('<form action="C:\\Documents and Settings\\Pip\\Desktop\\Bob Grawi\\'+mp3+'"><center><h2>Download '+song+'</h2></center>');</script>
<div class="container" style="padding: 5px;">
<script>
document.write('<center><input type="submit" value="Download '+song+'"></center>');
//document.write('<a href="C:\\Documents a[removed]b Grawi\\'+mp3+'">Download</a>')
</script>
</div>
</form>
</body>
</html>
HELP!
Bookmarks