Hi folks, any help on this would be appriciated.
I'm building a site that shows guiter tabs and also lets you hear the midi
file of that particular tab. If you go to www.guitarmidi.co.uk and click
'view all' then click 'play' on any song, the midi should start playing in a
new window.
What I would like to do is have the name of the song as the title of the new
page (at the moment it only shows the path of the midi file on the server
and really takes the look off it).
Heres the code (the xml file is at the bottom):-
<head>
<script type="text/javascript">
function newWindow(src)
{
window.open(src, "_blank", "height=100, width=400, menubar=no,
toolbar=no")}
</script>
</head>
<body>
..
..
<a href="javascript:newWindow('media/{$path1}.mid')"><img
src="images/play.gif" border="0"/></a>
..
..
</body>
data.xml
---------
<cat>
<links>
<artist>beatles, the</artist>
<song>a day in the life</song>
<path>beatles_-_a_day_in_the_life</path>
</links>
<links>
<artist>beatles, the</artist>
<song>free as a bird</song>
<path>beatles_-_free_as_a_bird</path>
</links>
<links>
<artist>beatles, the</artist>
<song>help</song>
<path>beatles_-_help</path>
</links>
<links>
<artist>beatles, the</artist>
<song>i am the walrus</song>
<path>beatles_-_i_am_the_walrus</path>
</links>