Click to See Complete Forum and Search --> : loading url into a layer
thelastrocker
12-04-2003, 08:19 PM
hi, i need a help, i want a script that load an external url into a layer. (i will use it like a frame page, with a menu and some link to different pages loaded in the same layer). can you help me?
thanks on advance
fede
davey
12-04-2003, 09:28 PM
i dont know if this is what your looking for but
<iframe src="YOUR LINK HERE" width="800" height="600 " name="iframe1" frameborder="0"></iframe>
will load a url into the frame (change the width and height to suit your needs)
thelastrocker
12-05-2003, 06:51 AM
thanks but it's not what i'm lookin for. i need a script, cause i want a static page where just the content of the layer change. there's a menu, and when i hit the menu a new url has to be loaded in the layer. it's more like a frame. but i can't use frames, cause it a small region in the middle of the page, so i should split the page in 5 frames :(
i found it as an extension for dreamweaver, but i'm not able to manage it with flash (the menu is in flash, and even if it looks like variables are ok it doesn't work)
TheBearMay
12-05-2003, 09:24 AM
Only way I can think of doing something like this would be to set the other pages up as a string variable, and then set the DIV innerHTML property to the string.
...
<script>
var page1="<html><body>.......";
var page2="<html><body>.......";
</script>
...
<body>
...
<div id="varContent"....></div>
...
<button onclick="varContent.innerHTML=page1"....
I think you would have to use an Iframe, you can make them any size you want.
Take a look here
www.huntingground.freeserve.co.uk/style/lyr_page.htm
thelastrocker
12-07-2003, 03:25 AM
thanks a lot Mr J, that's what i was lookin for!!