Jump to content

using frames would enable me to load links in to a frame and not the whole page.


jasonc

Recommended Posts

i wish to have a blogger scroll across the screen but when a link is clicked on my site the current scroll bar marque does a refresh and starts scrolling from the start again. i would like to have it continue without intruption.

using frames would enable me to load links in to a frame and not the whole page.

i have tried the following and it did not work!

any ideas?


thanks



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<frameset rows="*,*,*" cols="*" framespacing="0"" frameborder="NO" border="0">
<frame src="header.php" name="topFrame" width="100%" height="100%">
<frame src="index.php" name="mainFrame" width="100%" height="100%">
<frame src="footer.php" name="bottomFrame" width="100%" height="100%">
</frameset>
<noframes><body>

</body></noframes>
</html>

Link to comment
Share on other sites

Have you got the links in the frame? If you do then use target="_parent" in your anchor (<a>) tags.

If a user clicks a link within the frame the whole page, not just the frame got to the linked page.

Could you explain a bit more please as I dont understand your question.
Link to comment
Share on other sites

Try this:

[code]<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<iframe src="header.php" name="topFrame" width="100%" height="100%">
<iframe src="index.php" name="mainFrame" width="100%" height="100%">
<iframe src="footer.php" name="bottomFrame" width="100%" height="100%">
<noframes><body>

</body></noframes>
</html>[/code]


Then when you have a link IN a frame make it look like "<a target="[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]mainframe[!--colorc--][/span][!--/colorc--]" href="[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]url[!--colorc--][/span][!--/colorc--]">[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]Your text[!--colorc--][/span][!--/colorc--]</a>"

And edit the parts in red

Or simply use php:
[code]
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<?php  
include 'header.php';
include 'index.php';
include 'footer.php';
?>
<noframes><body>

</body></noframes>
</html>[/code]
Link to comment
Share on other sites

i can not use the following code as this is what i use at the moment.

the header file has the scroller and this need to be static and not be reloaded as the scroller restarts.

any other ideas?

thanks





[!--quoteo(post=360347:date=Mar 31 2006, 02:30 PM:name=Poi)--][div class=\'quotetop\']QUOTE(Poi @ Mar 31 2006, 02:30 PM) [snapback]360347[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Try this:

[code]<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<iframe src="header.php" name="topFrame" width="100%" height="100%">
<iframe src="index.php" name="mainFrame" width="100%" height="100%">
<iframe src="footer.php" name="bottomFrame" width="100%" height="100%">
<noframes><body>

</body></noframes>
</html>[/code]
Then when you have a link IN a frame make it look like "<a target="[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]mainframe[!--colorc--][/span][!--/colorc--]" href="[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]url[!--colorc--][/span][!--/colorc--]">[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]Your text[!--colorc--][/span][!--/colorc--]</a>"

And edit the parts in red

Or simply use php:
[code]
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<?php  
include 'header.php';
include 'index.php';
include 'footer.php';
?>
<noframes><body>

</body></noframes>
</html>[/code]
[/quote]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.