Author |
Message |
pmaryan
Regular
Joined: Oct 06, 2005
Posts: 76
|
Posted:
Sun Aug 06, 2006 10:31 pm |
|
Hey, if you take a look at a new site I am working on, I have it to start playing a piece of music that this musician has made, however I can't seem to find out how to get it to not refresh that section, when a link is clicked, so that the song doesnt restart.
Any ideas? Is it even possible?
www.beat2k.org/vgomez/
Thanks. |
|
|
|
|
kguske
Site Admin
Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Mon Aug 07, 2006 5:27 am |
|
It might be, but it depends on how you want it to work and how much modification you want to do. If you only want it to play on the index page, put the code inside in an IF. If you only want it to play once for a visitor, you'll need to store the information in a cookie or session and check it before playing.
BTW, I could not pull up the site. |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
|
pmaryan
|
Posted:
Mon Aug 07, 2006 6:33 am |
|
I'd like to have it play on all pages if possible, and not be interrupted. Maybe i have to put a frame at the top of the page that is universal and doens't get reloaded?
Try taking a look at the site now, it should be up.
Thanks |
|
|
|
|
gregexp
The Mouse Is Extension Of Arm
Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol
|
Posted:
Mon Aug 07, 2006 7:12 am |
|
Dont mean to jump in here but if I may,
hmmm, curious.
Thing is, nuke reloads all components at every different part of the site.
Perhaps its a good idea to look into some sort of javascript OR cookie session to apply for the music.
This is a curious concept and would be usefull for a few other applications I had in mind.
I'll work on this and see if I can come up with anything. |
_________________ For those who stand shall NEVER fall and those who fall shall RISE once more!! |
|
|
|
hitwalker
Sells PC To Pay For Divorce
Joined:
Posts: 5661
|
Posted:
Mon Aug 07, 2006 12:43 pm |
|
well thats probably not gonna work...
ive seen a lot of these things...
in your case pmaryan its solved by an iframe..
and some flash players are capable of doing this but hard to find out whitch one..
ive tried a few demo's on nuke sites but they just reload.
other option would be onload and hidden but not everybody is gonna like that.. |
|
|
|
|
pmaryan
|
Posted:
Mon Aug 07, 2006 2:51 pm |
|
I dont understand the use of that tag, and how I would implement it into an embed item.
Maybe I could create a custom block with a link to popup a window that contains the flash player.
Is there a best practice that wont be blocked by a popup blocker? And where would I go about learning how to make a simple block with a picture link in it and the popup window. |
|
|
|
|
hitwalker
|
Posted:
Mon Aug 07, 2006 3:03 pm |
|
yeah you could put this in a block..
Code:<a href="#" onclick="window.open('yourpagewhatever.php', 'music', 'toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=no,resizable=no,copyhistory=y es,width=500,height=500')"><img src="yourimage.gif"></a>
|
|
|
|
|
|
pmaryan
|
Posted:
Mon Aug 07, 2006 5:28 pm |
|
well this is what I posted in block-musicplayer.php
However it formats it strange.. I'm afraid I'm a newb when it comes to coding these blocks. I activated the following file.
Code:<center>
<br><br>
<a href="#" onclick="window.open('/vgomez/musicplayer.html', 'music', 'toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=no,resizable=no,copyhistory=y es,width=500,height=500')"><img src="/users/vg/vguest.jpg"></a></center><br><br>
|
You can see it on the site now.
www.beat2k.org/vgomez
Why would it make two sections? |
|
|
|
|
hitwalker
|
Posted:
Mon Aug 07, 2006 7:03 pm |
|
i dont know...
it shouldnt...
but take the 2 starting <br> and last 2 <br> |
|
|
|
|
|