Jump to content


how should i go about making this website?


15 replies to this topic

#1 Tirus

    P2L Jedi

  • Members
  • PipPipPip
  • 764 posts
  • Gender:Male
  • Location:Montreal, Canada
  • Interests:Web Design, Programming, Music, Martial Arts

Posted 07 October 2005 - 06:09 PM

Hello All,

I finished designing a website layout for a band on photoshop. I have also used funkysoul's flash tutorial to create an mp3 player for the site. My objective is to create the site with the flash mp3 player continuously playing and not restarting everytime one changes pages. Of course a very easy way to fix this is by creating the site 100% in flash, which I am considering, however I would prefer to create it in html. Is there a way to place my swf of the mp3 player in my html created website and not have the player restart on every page?

Is the only solution to this problem the use of frames, like one frame at the bottom where I would put in the player? (although I would rather avoid using frames)

Any and all help is greatly appreciated!

#2 l3lueMage

    Wanna Be Moderator

  • Publishing Betazoids
  • PipPipPipPip
  • 4,596 posts
  • Gender:Male
  • Location:San Francisco Bay Area

Posted 07 October 2005 - 06:48 PM

Well, I was gonna say use frames but since you dont want that. I believe you can do it with CSS/Javascript mixed. I believe I did something like that once. I would do some tutorials cause it takes a while to learn how to do it. But yea easiest way is using Frames.

#3 d7x

    P2L Jedi

  • Twodded Staff
  • PipPipPip
  • 586 posts
  • Gender:Male
  • Location:Virginia
  • Interests:Life

Posted 07 October 2005 - 06:51 PM

css, is the best way, faster load times and everything

#4 Stu

    Retired P2L Staff

  • Publishing Betazoids
  • PipPipPipPip
  • 1,761 posts
  • Gender:Male

Posted 07 October 2005 - 07:25 PM

im not sure, so dont blame me if im wasting your time, but you might want to look into something called AJAX .... i beieve cliff has written a tutorial on it on twodded

#5 Tirus

    P2L Jedi

  • Members
  • PipPipPip
  • 764 posts
  • Gender:Male
  • Location:Montreal, Canada
  • Interests:Web Design, Programming, Music, Martial Arts

Posted 07 October 2005 - 08:21 PM

ok, i read the tutorial on AJAX by Cliff and i dont really see how that would help me keep the flash mp3 player constantly playing throughout page changes. Maybe it is the perfect solution but I have very little experience with Javascript, CSS and PHP at the moment (although I will learn) so I just might not see its practical use at the moment. Thanks for the info though, i appreciate it.

Ok, back to frames....since I guess I should accept it being the simplest method....how would I apply the frames to the layout? :

Posted Image

the background will either be black or black with white dots (their album cover theme) with the site centered vertically and horizontally.

The bright green square is to show where my flash player will be placed. I have never used frames before, I've experimented with them in Dreamweaver but I would like to simply know where I should place the frame and what to put in it.

I'm thinking placing the frame at the bottom (seems obvious) but not too sure if I should slice the bottom of the web page (where it says designed by etc etc and the mp3 player) as one and place that in the frame.

Any help? :)

#6 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 08 October 2005 - 12:29 AM

I'd suggest frames or doing the site entirely in flash for this.
And also, you can rule out using CSS or PHP for it. CSS is for styling, how it could possibly affect an mp3 player is beyond me. And PHP is server-side, so the page would have to refresh for anything to happen.

#7 liveman

    Young Padawan

  • Members
  • Pip
  • 246 posts
  • Location:New Jersey

Posted 09 October 2005 - 03:55 PM

Im not sure, but isnt there a way to include a html document in flash?

#8 Tirus

    P2L Jedi

  • Members
  • PipPipPip
  • 764 posts
  • Gender:Male
  • Location:Montreal, Canada
  • Interests:Web Design, Programming, Music, Martial Arts

Posted 09 October 2005 - 04:12 PM

rc69, on Oct 8 2005, 01:29 AM, said:

I'd suggest frames or doing the site entirely in flash for this.
And also, you can rule out using CSS or PHP for it. CSS is for styling, how it could possibly affect an mp3 player is beyond me. And PHP is server-side, so the page would have to refresh for anything to happen.
havent heard about that liveman

and rc69, im willing to use a frame at the bottom for the mp3 player....but I dont want the site so that you have a scroll bar for the main page....not sure if im explaining it right, but basically is there a way to make a frame at the bottom that is positioned at the absolute bottom, like after the entire rest (top and middle porton) of the site. I tried using a frame at the bottom, problem is, I now get a scroll bar (not the default browser one, a new one) for the top half of the site and I dont want one.

Anyone know how to make a frame positioned at the bottom show up once the rest of the site is shown, therefore eliminating the additional scroll bar?

Tirus

#9 ericrcan

    Young Padawan

  • Members
  • Pip
  • 103 posts

Posted 09 October 2005 - 05:27 PM

im not sure, but maybe give this a try..automaticly opens a new window (you choose hiehgt width). its set so it opens only once on a brower session (meaning if you close it, your brower session has ended). the script is:

<script type="text/javascript">
 
//the url it is going to open
var popurls=new Array()
popurls[0]="http://www.kreativedesignworks.net"

function openpopup(popurl){
var winpops=window.open(popurl,"","width=,height=")
}

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function loadornot(){
if (get_cookie('jkpopup')==''){
openpopup(popurls[Math.floor(Math.random()*(popurls.length))])
document.cookie="jkpopup=yes"
}
}

loadornot()
</script>


#10 Tirus

    P2L Jedi

  • Members
  • PipPipPip
  • 764 posts
  • Gender:Male
  • Location:Montreal, Canada
  • Interests:Web Design, Programming, Music, Martial Arts

Posted 09 October 2005 - 05:36 PM

so if i used that script to open a new page with the mp3 player in it, music would play and people could navigate through the site without restarting the music :doh:

im just not very good with this coding stuff so it will take some work to figure it all out.....and i was actually thinking of just making the player open in another window.



one more thing, just a random question.....would anyone have any idea what the chances are that people have the flash plugins required to view a website made in falsh? im asking this because IF i do make the site or a site in the future in flash, im wondering if most people would already have the necessary plugin to view it.

#11 ericrcan

    Young Padawan

  • Members
  • Pip
  • 103 posts

Posted 09 October 2005 - 06:48 PM

if you put the script in the <head> section of the index page, it will automaticly open a new window. that new window would be the seperate html document with the flash mp3 player in it. and as far as the flash player, most people do have it. if they do not, it will tell them that they need to download it to view it. so its a good idea i think :P

#12 Fez_uk

    Young Padawan

  • Members
  • Pip
  • 29 posts

Posted 11 October 2005 - 06:35 AM

zYpher, on Oct 9 2005, 11:48 PM, said:

if you put the script in the <head> section of the index page, it will automaticly open a new window. that new window would be the seperate html document with the flash mp3 player in it. and as far as the flash player, most people do have it. if they do not, it will tell them that they need to download it to view it. so its a good idea i think :D
I think he has the best idea for you, If you don't want it to complicated and then they have a choice if they want the player to run.
By making a flash site it is more made for people not running slow connections so they would most likely have flash player.

#13 ericrcan

    Young Padawan

  • Members
  • Pip
  • 103 posts

Posted 12 October 2005 - 08:27 PM

zYpher, on Oct 9 2005, 12:27 PM, said:

<script type="text/javascript">
 
//the url it is going to open
var popurls=new Array()
popurls[0]="http://www.kreativedesignworks.net"
</script>
make sure you change the url too! if you didnt know already :whistle:

#14 Tirus

    P2L Jedi

  • Members
  • PipPipPip
  • 764 posts
  • Gender:Male
  • Location:Montreal, Canada
  • Interests:Web Design, Programming, Music, Martial Arts

Posted 12 October 2005 - 09:43 PM

zYpher, on Oct 12 2005, 09:27 PM, said:

zYpher, on Oct 9 2005, 12:27 PM, said:


<script type="text/javascript">
 
//the url it is going to open
var popurls=new Array()
popurls[0]="http://www.kreativedesignworks.net"
</script>
make sure you change the url too! if you didnt know already :whistle:
yes, thing is im like really new to coding and scripts, I usually let Dreamweaver do the work. Yes I know, much better to learn the actual code, and I'm planning on it. Starting from scratch, learning html and then moving on to hopefully css and php.

But for now, since I dont really know what I'm doing with the code, I'm just barely making it trying to figure out everything that needs to be changed in the entire script you gave me. :(

#15 zhanster

    Young Padawan

  • Members
  • Pip
  • 125 posts

Posted 15 October 2005 - 05:22 AM

Read some basic JavaScript tutorial and you can fix and edit codes. That's what I did, I don't know enough to write sets of codes that always work. but Iknow enough to install codes I get from libraries.

#16 Lift

    Young Padawan

  • Members
  • Pip
  • 89 posts
  • Location:ON, Canada

Posted 17 October 2005 - 11:55 AM

I think Stu has the right idea with the AJAX. The way AJAX works is you can load new content without refreshing the page and thus the flash mp3 player won't be interupted.

There is a tutorial on sitepoint.com - AJAX tutorial walk through.

I have not attempted this tutorial so I can't realy tell you anything about it, but all the tutorials I have done from that site are excellent.

Hope that helps.

Ciao





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users