![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
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!!!!! |
![]() |
| Thread Tools | |
| Display Modes | |
| |