PDA

View Full Version : layers in dreamweaver


DagGz
January 10th, 2003, 12:09 PM
hi, i was just wondering if you can display html documents in the layers that you can create in dreamweaver, sort of like iframes but not if you get me. if it is possible can you please let me know how to do this as it would be a great help in my website development.

degsy
January 10th, 2003, 02:54 PM
no, you cannot load an external page into a layer as you would with an Iframe.

DagGz
January 10th, 2003, 04:01 PM
no matter, ive found another way of doing it any ways. but i do have another question. ive seen something on another website that i would like to re-create on my own. i havent got a clue on how to do it so could someone have a look and suggest on how i might do it.

http://www.breakbeat.co.uk/dnbtv/

you click the link that you want to play and it displays in the media player that is already embedded on the page. i persume u must need to give the player some sort of id to the file knows where to play itself. i just dont know how to do it.

degsy
January 10th, 2003, 04:47 PM
It's done using javascript.
Do you know javascript?

What happens is when the link is clicked it starts a function which changes the file in the media player.

Function:

function Play(ProgramID, TrackID)
{
var PlayerFrame = parent.rightFrame;
PlayerFrame.location.href="mediaplayer.tv.asp?ProgramID=" + ProgramID + "&TrackID=" + TrackID
}



Link:

<A onclick="Play(100017,-1)" href="javascript:;">

DagGz
January 10th, 2003, 05:42 PM
to be honest i dont really understand javascript but if i give you the path to a media file on my computer could u add it to the javascript or whatever you need to do with it. then ill just add whatever u write to into my coding =)

C:\Program Files\Macromedia\Dreamweaver 4\Lessons\Lesson Files\sublo website\mixes\webmix\Sublo - Live from Coventry UK (2002 Dec 01)

cheers for your help

oh and i dont want the media player to be in a seperate frame, i plan on inserting it into a layer. i think that will work?