HighDots Forums  

Frame Stuffer Help PLease

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Frame Stuffer Help PLease in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
theo29
 
Posts: n/a

Default Frame Stuffer Help PLease - 05-25-2004 , 05:37 PM






Hello,

I was wondering if anyone could help me with a solution to a problem I am
having,
I applied the below stuffer code and followed the directions......but then it
had to be modified ....when applied to the main section of my site it would not
allow subpages or sections to go backwards with the backbutton...... but when
it is taken of the MAIN MAIN section the back button functions properly
throughout the site..............but now when the main pages come up in serch
engines, they come up outside of the frameset.......I know this sounds really
confusing.......If anyone can help I would appreciate it.....The code and
directions I used are below

thank you
teddy

All Head Tags for FrameStuffer

(Delete any old Java Script)
WHAT IT DOES
Individual pages will open in the index.htm frameset when accessed by search
engines.
Directions:
Create a file called blank.htm change the page properties to set the
background color to the site?s background color

Open Index.htm and name the targets:
leftFrame and mainFrame (already done on the template)

On the left load LeftFrame.htm and on the right load blank.htm

Save the frameset.

Put this code in the Head Area
<script language="javascript" type="text/javascript">
// frameJammer_hp v3.2.2 framestuffer
if (self != top) // frame buster, may be removed
top.location.replace(self.location);

var theDefault = 'Hot_Deals.shtm';
var theFrame = 'mainFrame';
var thePage = theDefault;
var framedPage = location.search;
if (framedPage.length > 1 && framedPage.indexOf("://") == -1){
framedPage = framedPage.substring(1);
var theSplit = framedPage.lastIndexOf('~');
if (theSplit != -1){
thePage = framedPage.substring(0,theSplit);
theFrame = framedPage.substring(theSplit+1);
}else
thePage = framedPage;
// insert anchor code here if required (see Help)
}

function frameStuffer(){
eval('top.'+theFrame+'.location.replace("'+ thePage +'");');
if (theFrame != 'mainFrame'){
top.mainFrame.location.replace(theDefault);
theFrame = 'mainFrame';
}
}
// frameJammer_hp End
</script>

6. Replace the Frameset code

<frameset rows="*" cols="188,*" framespacing="0" frameborder="NO" border="0"
onLoad="frameStuffer()">
<frame name="leftFrame" scrolling="NO" noresize src="LeftFrame.htm"
marginwidth="0" marginheight="0">
<frame src="blank.htm" name="mainFrame" scrolling="AUTO" noresize
marginwidth="0" marginheight="0" id="mainFrame">
</frameset>
Save the frameset again.

After setting up the index.htm apply code below to all link pages:
(Javascript for head tags ? place after style sheet links in the Head tags)
Put in this code if have a pop-up (i.e. Terms and Conditions ? all package
pages, Hot Deals, and Groups)

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>

On every page add this code (below the pop-up code if applicable) Change the
page name (and extension if necessary)

<script language="javascript" type="text/javascript">
// frameJammer_hp v3.2.2 framestuffer
if (window.name!='mainFrame' && window.name!='booker_'
&& !((self.innerHeight == 0) && (self.innerWidth == 0)))
top.location.replace('index.htm?replacepagename.sh tm~mainFrame');
// frameJammer_hp End
</script>



Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Frame Stuffer Help PLease - 05-25-2004 , 05:53 PM






This is the fate of the frames-using developer. One unpleasant work-around
after another.

Take a break. Get a beer. Consider dumping the frames. Flat pages
wouldn't have these problems at all. Nor would they have any of the other
nasty problems....

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"theo29" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hello,

I was wondering if anyone could help me with a solution to a problem I am
having,
I applied the below stuffer code and followed the directions......but
then it
had to be modified ....when applied to the main section of my site it
would not
allow subpages or sections to go backwards with the backbutton...... but
when
it is taken of the MAIN MAIN section the back button functions properly
throughout the site..............but now when the main pages come up in
serch
engines, they come up outside of the frameset.......I know this sounds
really
confusing.......If anyone can help I would appreciate it.....The code and
directions I used are below

thank you
teddy

All Head Tags for FrameStuffer

(Delete any old Java Script)
WHAT IT DOES
Individual pages will open in the index.htm frameset when accessed by
search
engines.
Directions:
Create a file called blank.htm change the page properties to set the
background color to the site?s background color

Open Index.htm and name the targets:
leftFrame and mainFrame (already done on the template)

On the left load LeftFrame.htm and on the right load blank.htm

Save the frameset.

Put this code in the Head Area
script language="javascript" type="text/javascript"
// frameJammer_hp v3.2.2 framestuffer
if (self != top) // frame buster, may be removed
top.location.replace(self.location);

var theDefault = 'Hot_Deals.shtm';
var theFrame = 'mainFrame';
var thePage = theDefault;
var framedPage = location.search;
if (framedPage.length > 1 && framedPage.indexOf("://") == -1){
framedPage = framedPage.substring(1);
var theSplit = framedPage.lastIndexOf('~');
if (theSplit != -1){
thePage = framedPage.substring(0,theSplit);
theFrame = framedPage.substring(theSplit+1);
}else
thePage = framedPage;
// insert anchor code here if required (see Help)
}

function frameStuffer(){
eval('top.'+theFrame+'.location.replace("'+ thePage +'");');
if (theFrame != 'mainFrame'){
top.mainFrame.location.replace(theDefault);
theFrame = 'mainFrame';
}
}
// frameJammer_hp End
/script

6. Replace the Frameset code

frameset rows="*" cols="188,*" framespacing="0" frameborder="NO"
border="0"
onLoad="frameStuffer()"
frame name="leftFrame" scrolling="NO" noresize src="LeftFrame.htm"
marginwidth="0" marginheight="0"
frame src="blank.htm" name="mainFrame" scrolling="AUTO" noresize
marginwidth="0" marginheight="0" id="mainFrame"
/frameset
Save the frameset again.

After setting up the index.htm apply code below to all link pages:
(Javascript for head tags ? place after style sheet links in the Head
tags)
Put in this code if have a pop-up (i.e. Terms and Conditions ? all
package
pages, Hot Deals, and Groups)

script language="JavaScript" type="text/JavaScript"
!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//--
/script

On every page add this code (below the pop-up code if applicable) Change
the
page name (and extension if necessary)

script language="javascript" type="text/javascript"
// frameJammer_hp v3.2.2 framestuffer
if (window.name!='mainFrame' && window.name!='booker_'
&& !((self.innerHeight == 0) && (self.innerWidth == 0)))
top.location.replace('index.htm?replacepagename.sh tm~mainFrame');
// frameJammer_hp End
/script





Reply With Quote
  #3  
Old   
theo29
 
Posts: n/a

Default Re: Frame Stuffer Help PLease - 05-25-2004 , 10:25 PM



Thanks....unfortunately I didn't design the site...........I took over for
someone who initially designed the site and then quit about half way
through....and it has been a living nightmare ever since!!!!!


Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Frame Stuffer Help PLease - 05-26-2004 , 06:38 AM



How big is the site?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"theo29" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Thanks....unfortunately I didn't design the site...........I took over for
someone who initially designed the site and then quit about half way
through....and it has been a living nightmare ever since!!!!!




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.