| View previous topic :: View next topic |
| Author |
Message |
XZminX
Joined: 21 Jul 2005 Posts: 1
|
Posted: Thu Jul 21, 2005 5:08 pm Post subject: Help with...umm...something |
|
|
Hello there! I'm new here and this is my first post. HI to all you people at DEVPPL. Hope I'll learn from you!
I already know some HTML. But what I need is the following:
I have few links and some space left below....like this:
Link 1
Link 2
....
Link N
_________________________________
space for flash file No X
_________________________________
Now I want it to do the following: When I press Link 1, in that space opens a flash file 1, when I press lin2 N, the flash file N opens.
How would I do such thing?
Also, lets say it's not a flash file, how would I display Text 1 if link one pressed and Text 2 if Link 2 pressed??
Thanks! |
|
| Back to top |
|
 |
|
|
webmaster Site Admin

Joined: 17 Aug 2004 Posts: 3589 Location: Sweden
|
Posted: Thu Jul 21, 2005 5:52 pm Post subject: Re: Help with...umm...something |
|
|
Hi and welcome to DEVPPL, hope we will se a lot of you around here =)
A good way to do what you are talking about is to use IFRAMES:
http://www.w3schools.com/tags/tag_iframe.asp
EDIT: You have to set the target="" on the link to the name of the IFRAME. |
|
| Back to top |
|
 |
ReFredzRate 1000+ Club

Joined: 20 Aug 2004 Posts: 2186 Location: Netherlands
|
Posted: Thu Jul 21, 2005 6:44 pm Post subject: Re: Help with...umm...something |
|
|
| I agree with Razz (webmaster). IFRAMEs are the best way to get this done. |
|
| Back to top |
|
 |
Phate 500+ Club

Joined: 21 Nov 2004 Posts: 818 Location: 127.0.0.1
|
Posted: Thu Jul 21, 2005 10:15 pm Post subject: Re: Help with...umm...something |
|
|
best / only?
I dont think that you can do it any other way |
|
| Back to top |
|
 |
webmaster Site Admin

Joined: 17 Aug 2004 Posts: 3589 Location: Sweden
|
Posted: Thu Jul 21, 2005 10:47 pm Post subject: Re: Help with...umm...something |
|
|
| Phate wrote: |
best / only?
I dont think that you can do it any other way |
It could be done with a FRAMESET too, or maybe a DIV, but a DIV would require that the page is reloaded and a frameset would require much more code. |
|
| Back to top |
|
 |
ReFredzRate 1000+ Club

Joined: 20 Aug 2004 Posts: 2186 Location: Netherlands
|
Posted: Fri Jul 22, 2005 5:28 am Post subject: Re: Help with...umm...something |
|
|
I might be wrong, but a FRAMESET also requires the page to be reloaded.
Anyway, a reloading page is 1) annoying for the visitors and 2) taking up valuable bandwidth.
I think you should just go with the IFRAMEs  |
|
| Back to top |
|
 |
Phate 500+ Club

Joined: 21 Nov 2004 Posts: 818 Location: 127.0.0.1
|
Posted: Fri Jul 22, 2005 6:47 am Post subject: Re: Help with...umm...something |
|
|
| webmaster wrote: |
| It could be done with a FRAMESET too, or maybe a DIV, but a DIV would require that the page is reloaded and a frameset would require much more code. |
huh... you learn something new everyday  |
|
| Back to top |
|
 |
Malcolm 100+ Club

Joined: 07 Oct 2004 Posts: 199 Location: Ontario, Canada
|
Posted: Fri Jul 22, 2005 8:24 am Post subject: Re: Help with...umm...something |
|
|
or you could chnage the inside of a div with javascript:
| Code: |
<html>
<head>
<script>
function more(){
document.getElementById('div').innerHTML=document.getElementById('div').innerHTML+"<span style='color:blue'> and</span><span style='color:red'> more</span>"
}
</script>
</head>
<body>
<div id="div" onclick="more();">(click me) here's some text</div>
</body>
</html>
|
Have fun clicking! |
|
| Back to top |
|
 |
|