PDA

View Full Version : some help with <LINK>



308holes
November 30th, 2001, 14:50
hello
I want to link a html page to my main page because i have a lot of content on the page and i dont want to make the file any bigger i tryed this but it didnt work any idea what i did wrong?
<link rel="HTML" type="text/html" href="pop.html">

308holes
November 30th, 2001, 21:26
or is it
<link type="text/html" href="pop.html">

Mikki00
November 30th, 2001, 22:33
Something missing from that code, I seen it before. But unfortunately I have a very bad memory. I will try to lo_ok into it, but I made no promise that I can help you. I'm sure lots of people here can. :D

Jan
November 30th, 2001, 23:25
Links are normally done like this

<a href="http://whatever.com/pop.html">Visit whatever</a>

Or are you referring to something totally different?

If you mean something different, can you please elaborate?

308holes
December 1st, 2001, 01:36
ok i have a popup script in a pop.html and that all thats in it and i want to link that page to the main.html page so when the main.html page loads it will show the popup

meow
December 1st, 2001, 02:11
<body onload="YourPopUpFunction()">

Or you could write the whole JS mumbo jumbo there in the onload="".

Jan
December 1st, 2001, 02:41
<!--Start On-Enter Background Pop-Up Window--><script LANGUAGE="JavaScript">
<!--
browserVer = parseInt(navigator.appVersion);
SX=window.open('pop.html','SXback','toolbar=1,location=1,sta tus=1,menubar=1,scrollbars=1,resizable=1,width=500,height=30 0');
if( browserVer >= 4) {
window.focus() ;
}
// -->
</script>

Adjust the size of the popup to your requirements.

308holes
December 1st, 2001, 03:27
lol im not making my self clear

ok here we go one more time
ok i have my main page wich is index.html
I have a other page that is popup.html
can i link the 2 pages so that when index.html is loaded the content in popup.html runs to ? kinda like a .js file

meow
December 1st, 2001, 03:32
Afraid you're not making it any clearer. :p
popup.html is supposed to run where, load in what? Not in a popup I gather.

Jan
December 1st, 2001, 04:06
Put the JS in pop.html and link it to ?.html

Or else......please explain EXACTLY what you want.

gyrbo
December 1st, 2001, 04:26
It's just not possible.
You can try to use SSI:
<!--include file="popup.html"-->
Or PHP:
<?php include('popup.html');?>
Or just put all the javascript of popup.html(no HTML!!!) in a file called popup.js and use:
<script language="javascript" src="popup.js"></script>

Hope this helps.

308holes
December 1st, 2001, 06:50
:-( i tryed the php and the ssi they didnt work i cant use .js because it has html in it

Jan
December 1st, 2001, 07:51
Peo, can you please add to this http://www.freewebspace.net/forums/announcement.php?s=&forumid=17 that requests for help (in any forum) be very clearly stated in the initial thread post?

It could save a lot of time for all concerned.

;)

308holes
December 1st, 2001, 22:16
it wa slike 2:00am i wasnt thinking clearly lol still i can find a way?

1st
December 2nd, 2001, 00:05
I want an auto redirect to my main webpage form a nother page on load?

308holes
December 2nd, 2001, 03:35
Originally posted by 308holes
lol im not making my self clear

ok here we go one more time
ok i have my main page wich is index.html
I have a other page that is popup.html
can i link the 2 pages so that when index.html is loaded the content in popup.html runs to ? kinda like a .js file

gyrbo
December 2nd, 2001, 06:05
Originally posted by 308holes
:-( i tryed the php and the ssi they didnt work i cant use .js because it has html in it
Did you renamed the extensions to .shtm(l) or .php(3) ?

308holes
December 2nd, 2001, 20:03
dahhh what a idiot forgot to do that knew it was gunna be some small error

meow
December 2nd, 2001, 20:11
So, you want to include the content of pop.html rather than have it in a pop-up. Thanks for telling at last. :p;)

308holes
December 3rd, 2001, 02:17
no dang it
pop.html = web page with a popupscript in it only
index.html = my main page

I wanted to take the pop.html page and link it in index.html so when indes.html load it loads pop.hmls content to!

but I got it so it dosent matter anymore!!

meow
December 3rd, 2001, 02:24
Not included and not popped. What is it? A ghost page? :nervous:

308holes
December 7th, 2001, 04:09
something like that!