Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Help with...umm...something



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> HTML Forum
View previous topic :: View next topic  
Author Message
XZminX



Joined: 21 Jul 2005
Posts: 1

PostPosted: Thu Jul 21, 2005 5:08 pm    Post subject: Help with...umm...something Reply with quote

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
View user's profile Send private message
webmaster
Site Admin


Joined: 17 Aug 2004
Posts: 3593
Location: Sweden

PostPosted: Thu Jul 21, 2005 5:52 pm    Post subject: Re: Help with...umm...something Reply with quote

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
View user's profile Send private message Visit poster's website
ReFredzRate
1000+ Club


Joined: 20 Aug 2004
Posts: 2186
Location: Netherlands

PostPosted: Thu Jul 21, 2005 6:44 pm    Post subject: Re: Help with...umm...something Reply with quote

I agree with Razz (webmaster). IFRAMEs are the best way to get this done.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Phate
500+ Club


Joined: 21 Nov 2004
Posts: 818
Location: 127.0.0.1

PostPosted: Thu Jul 21, 2005 10:15 pm    Post subject: Re: Help with...umm...something Reply with quote

best / only?

I dont think that you can do it any other way
Back to top
View user's profile Send private message Send e-mail AIM Address
webmaster
Site Admin


Joined: 17 Aug 2004
Posts: 3593
Location: Sweden

PostPosted: Thu Jul 21, 2005 10:47 pm    Post subject: Re: Help with...umm...something Reply with quote

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
View user's profile Send private message Visit poster's website
ReFredzRate
1000+ Club


Joined: 20 Aug 2004
Posts: 2186
Location: Netherlands

PostPosted: Fri Jul 22, 2005 5:28 am    Post subject: Re: Help with...umm...something Reply with quote

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 Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Phate
500+ Club


Joined: 21 Nov 2004
Posts: 818
Location: 127.0.0.1

PostPosted: Fri Jul 22, 2005 6:47 am    Post subject: Re: Help with...umm...something Reply with quote

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 Very Happy
Back to top
View user's profile Send private message Send e-mail AIM Address
Malcolm
100+ Club


Joined: 07 Oct 2004
Posts: 199
Location: Ontario, Canada

PostPosted: Fri Jul 22, 2005 8:24 am    Post subject: Re: Help with...umm...something Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> HTML Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap