linking and jshowing at the same time

Mendel

Mr. Upgrade
Veteran
I'm doing a website where I have a complex menu in one frame and would like to open pages to another frame. The page needs to be framed so that someone else can edit just the simple text documents. Sometimes they also open more menuitems and move other menuitems around.

However, it seems I can only either do the jshows and jsmoves or make a working link. They don't work at the same time.


Here is an example button. I'm using dhe editor and trying to manually fix the code it generates.

Code:
<div id='ldheLabel23' name='ldheLabel23' style='position:absolute;left:20px;top:256px;width:86px;height:16px;text-align:left;' align='left' valign='top'>
<font class='verdana10FFFFFFFFFFFFtb'><a href="section_a.htm" target="rightframe" class='verdana10FFFFFFFFFFFFtb' onclick="jsShow('Label24',1);jsShow('Label25',1);jsShow('Label26',1);jsShow('Label27',1);jsShow('iRect24',1);jsShow('iRect25',1);jsShow('iRect26',1);jsShow('iRect27',1);jsShow('Label20',0);jsShow('Label21',0);jsShow('Label22',0);jsShow('iRect20',0);jsShow('iRect21',0);jsShow('iRect22',0);jsShow('Label8',0);jsShow('Label9',0);jsShow('Label10',0);jsShow('Label11',0);jsShow('Label4',0);jsShow('Label5',0);jsShow('Label6',0);jsShow('iRect3',0);jsShow('iRect4',0);jsShow('iRect6',0);jsShow('iRect8',0);jsShow('iRect9',0);jsShow('iRect10',0);jsShow('iRect11',0);jsMove('Label23',20,256);jsMove('Rect23',0,254);jsMove('iRect23',1,255);jsMove('Label14',20,234);jsMove('iRect14',0,232);jsMove('Label13',20,212);jsMove('iRect13',0,210);jsMove('iRect12',0,188);jsMove('Label12',20,190);jsMove('Label7',20,168);jsMove('iRect7',0,166);jsMove('iRect29',0,360);jsMove('iRect28',0,382);jsMove('Label28',20,384);jsMove('Label29',20,362);jsShow('Label33',0);jsShow('Label32',0);jsShow('Label31',0);jsShow('Label30',0);jsShow('iRect33',0);jsShow('iRect32',0);jsShow('iRect31',0);jsShow('iRect30',0);jsShow('Label15',0);jsShow('Label16',0);jsShow('Label17',0);jsShow('Label18',0);jsShow('Label19',0);jsShow('iRect15',0);jsShow('iRect16',0);jsShow('iRect17',0);jsShow('iRect18',0);jsShow('iRect19',0);return false;">section a</a></font><br></div>
 
You'd be better making the onclick event a call to a function that then executes the JShow functions. It would be more readable and less prone to errors (ie. escaping quotes etc.) There's also no reason I can see why you would enclose the href in a FONT tag (that['s deprecated) and hass the same class.
 
You might want to fix the length of the page to something viewable, so people actually read this thread. :D

But you can use a separate menu on the index page, together with an iframe, and have the separate pages load the index page with the url of the required page attached to the url for the index page, and just use blank pages with the header and footer html stuff and include the text file in between. That way, google understands it as well.

For an example, you could take a peek at my site, although I didn't finish the include bit yet.
 
It seems I get what I want when I put "onmousedown" there instead of "onclick".

Well, thanks for the comments anyways!
 
Back
Top