Welcome visitor
* Login
* Register
It is currently January 18th, 2019, 7:30 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  LINKS HELP
PostPosted: April 9th, 2009, 6:47 pm 
User avatar

Posts: 42
hi, can someone suggest me how to achieve this?

what i want to do is to to have a "links" section to websites like google, yahoo, etc... but i want to keep my others links visibles. also that if the user close this links window, mine should still be open. i hope i didnt confuse you.

thanks for your help.


Top
 Profile  
 
  Re: LINKS HELP
PostPosted: April 9th, 2009, 7:06 pm 

Posts: 117
This is what I would do,

1. Create an independent window to open the links using target _blank
<a href="links.htm" target="_blank">LINKS SECTION</a>


2. Note that we are calling a file called links.htm. This file is supposed to have the links that you want.
3. On this file we are going to use an iframe to display the content of the links.
4. Name the iframe.
5. All the links are going to have as well as in the beginning a target but on this case the target is going to be the name of the iframe. We use the base target for this.

Also note that I'm using a div to group all the links.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <title></title>
<base target="_iframe">
<style type="text/css">
body, html{
height:100%;
background-color: #000000;
color: #ff00ff;
font-family: helvetica;}
a{text-decoration: none; color: #ff00ff;}
</style>
</head>
<body>
<div style="float: left; width: 170px; margin-right: 40px; text-align: right;">
<br /><br />
<a href="http://www.google.com"> g o o g l e </a>
<br /><br />
<a href="http://www.yahoo.com"> y a h o o </a>
<br /><br />
</div>
<iframe style="width: 600px; height: 420px;" name="_iframe"></iframe>
</body>
</html>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron