It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

Help with...umm...something

Help with...umm...something

Postby XZminX on Thu Jul 21, 2005 4:08 pm

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!
XZminX
 
Posts: 0
Joined: Thu Jul 21, 2005 3:52 pm

Postby webmaster on Thu Jul 21, 2005 4:52 pm

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.
Make sure to check out our TNX Review and Link Vault Review
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden

Postby ReFredzRate on Thu Jul 21, 2005 5:44 pm

I agree with Razz (webmaster). IFRAMEs are the best way to get this done.
ReFredzRate
1000+ Club
 

Postby Phate on Thu Jul 21, 2005 9:15 pm

best / only?

I dont think that you can do it any other way
Web-Developing since '03
Image
User avatar
Phate
500+ Club
 
Posts: 826
Joined: Sun Nov 21, 2004 4:12 am
Location: 127.0.0.1

Postby webmaster on Thu Jul 21, 2005 9:47 pm

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.
Make sure to check out our TNX Review and Link Vault Review
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden

Postby ReFredzRate on Fri Jul 22, 2005 4:28 am

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 :)
ReFredzRate
1000+ Club
 

Postby Phate on Fri Jul 22, 2005 5:47 am

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 :D
Web-Developing since '03
Image
User avatar
Phate
500+ Club
 
Posts: 826
Joined: Sun Nov 21, 2004 4:12 am
Location: 127.0.0.1

Postby Malcolm on Fri Jul 22, 2005 7:24 am

or you could chnage the inside of a div with javascript:
Code: Select all
<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!
Image
User avatar
Malcolm
100+ Club
 
Posts: 198
Joined: Thu Oct 07, 2004 9:53 pm
Location: Ontario, Canada


Who is online

Users browsing this forum: No registered users and 4 guests