|
Home
Forums
Awards for You
Winners
Awards Won
About Us
Past Layouts
Past Updates

Site Rules
Site FAQ
Site Staff
Credits
Link to Us
Link Exchange
Linkage
Affiliation

Latest Contest
Previous Contest
Contest Winners
Mini Contests
General Rules

100x100 Icons
64x64 Icons
70x70 Icons
AIM Icons
Archived Icons

Signatures
Buttons
Banners
Wallpapers
Enter Signs
Hiatus Signs
LJ Headers
Friends Only Banners

Div Layer
Tables
iFrames
PopUp

Brushes
Extractions
Vectors
Icon Bases
Icon Creator

HTML Tutorials
CSS Turoials
Let's Make a Layout
Graphics Tutorials
Do's and Don'ts




Bassman Themes
|
|
Opening Links in a New window, etc.
Often people enjoy the ability to make a link open up in a new window. This is so perhaps you can send someone to a site and have them on your site still, or make the image open in a new window and not have to have the person reloading the main gallery page all the time.
This is useful if you want the site to remain open while you send them to your forums... or something of the sort.
So lets move onto the code. To do this we need our link code.
<a href="http://www.mistyicedesigns.com">mistyicedesigns.com</a>
Inside this link code we're now going to add target=_new
So the code should now look like this:
<a href="http://www.mistyicedesigns.com" target=_new>mistyicedesigns.com</a>
And the result would be this (Click the link to view a demo)
mistyicedesigns.com
Nex we'll work on opening the link in the same window but outside of the frames. The last thing you want is for your link to be contained inside the frames, especially if you're linking to an outside site.
So to start we'll take our link code:
<a href="http://www.mistyicedesigns.com">mistyicedesigns.com</a>
Inside this link code we're now going to add target=_parent
So the code should now look like this:
<a href="http://www.mistyicedesigns.com" target=_parent>mistyicedesigns.com</a>
And the result would be this (Click the link to view a demo... though technically I have no frames, so it'll open regularly anyway.)
mistyicedesigns.com
Next we want to learn how to open the link inside the target frame. So if we've made a frame and we want our links to open into that frame we need to first look to our frame properties.
So when you make your frames (Which is a later lesson but We'll just touch on it for a moment.) You'll have a property called "Name" So this propert is where we give the frame a name Like this: Name="Main" often you name your frame after what it's going to be. So commonly there is Main, Links, Title, bottom, right, left, Center
To make a link open inside a frame we need to once again take our link code:
<a href="http://www.mistyicedesigns.com">mistyicedesigns.com</a>
The name of our frame is going to be "Main." So, Inside this link code we're now going to add target="Main"
So the code should now look like this:
<a href="http://www.mistyicedesigns.com" target="Main">mistyicedesigns.com</a>
We can't make a real demo of this, but basically the result is that your link will open up inside the target frame.
| |