Allen Pitts
asked on
Son of javascript text write
Good afternoon Expert,
Please forgive the long code section but don't worry, it is listed to
ask a question of concept. The code works. But I now have nineteen
functions. Perhaps there is no way to use looping or arays or some opther
method of reducing the number of functions or perhaps there is. I remember
in VB class that looping or arrays were a way of reducing the number of subroutines.
Does that apply here? If so can you give me a basic idea of the syntax?
Also a brief and specific question. (Maybe I should make this a separate question. If
so let me know.) In the diagram marked Business Anaylsis Body of Knowledge there
is text that appears, 'Enterprise Anaysis'.that Ioverlaps the box it is supposed to go in.
Is there some way of putting a line break (<br>) int the line
<area shape ="rect" coords ="65,241,140,338" onMouseOver="writeTextG('E nterprise Analysis')"/>
Thanks
Allen in Dallas
begin code section ++++++++++++++++
<html>
<head>
<script type="text/javascript">
function writeText(txt)
{
document.getElementById("d esc").inne rHTML=txt;
}
function writeTextB(txt)
{
document.getElementById("d escB").inn erHTML=txt ;
}
function writeTextC(txt)
{
document.getElementById("d escC").inn erHTML=txt ;
}
function writeTextD(txt)
{
document.getElementById("d escD").inn erHTML=txt ;
}
function writeTextE(txt)
{
document.getElementById("d escE").inn erHTML=txt ;
}
function writeTextF(txt)
{
document.getElementById("d escF").inn erHTML=txt ;
}
function writeTextG(txt)
{
document.getElementById("d escG").inn erHTML=txt ;
}
function writeTextH(txt)
{
document.getElementById("d escH").inn erHTML=txt ;
}
function writeTextJ(txt)
{
document.getElementById("d escJ").inn erHTML=txt ;
}
function writeTextK(txt)
{
document.getElementById("d escK").inn erHTML=txt ;
}
function writeTextL(txt)
{
document.getElementById("d escL").inn erHTML=txt ;
}
function writeTextM(txt)
{
document.getElementById("d escM").inn erHTML=txt ;
}
function writeTextN(txt)
{
document.getElementById("d escN").inn erHTML=txt ;
}
function writeTextP(txt)
{
document.getElementById("d escP").inn erHTML=txt ;
}
function writeTextQ(txt)
{
document.getElementById("d escQ").inn erHTML=txt ;
}
function writeTextR(txt)
{
document.getElementById("d escR").inn erHTML=txt ;
}
function writeTextS(txt)
{
document.getElementById("d escS").inn erHTML=txt ;
}
function writeTextT(txt)
{
document.getElementById("d escT").inn erHTML=txt ;
}
function writeTextU(txt)
{
document.getElementById("d escU").inn erHTML=txt ;
}
</script>
</head>
<body>
<div><img src ="images/BABOK_e.gif" width ="780" height ="600" usemap="#RPM" /></div>
<map id ="RPM" name="RPM">
<area shape ="rect" coords ="177,145,641,176" onMouseOver="writeText('Re quirements Planning and Management')"/>
<area shape ="rect" coords ="259,221,440,262" onMouseOver="writeTextB('R equirement s Elicitation')"/>
<area shape ="rect" coords ="315,270,497,312" onMouseOver="writeTextC('R eq_ments Analysis and Doc.')"/>
<area shape ="rect" coords ="441,322,622,362" onMouseOver="writeTextD('S olution Assess. & Eval.')"/>
<area shape ="rect" coords ="235,412,700,440" onMouseOver="writeTextE('R equirement s Communication')"/>
<area shape ="rect" coords ="176,411,641,441" onMouseOver="writeTextF('R equirement s Communication')"/>
<area shape ="rect" coords ="65,241,140,338" onMouseOver="writeTextG('E nterprise Analysis')"/>
</map>
<div id="desc" style="position: absolute; height: auto; width: auto; left: 280px; top: 170px; font-family: arial; "></div>
<div id="descB" style="position: absolute; height: auto; width: auto; left: 235px; top: 252px; font-family: arial; font-size: 12; "></div>
<div id="descC" style="position: absolute; height: auto; width: auto; left: 335px; top: 302px; font-family: arial; font-size: 12; "></div>
<div id="descD" style="position: absolute; height: auto; width: auto; left: 470px; top: 352px; font-family: arial; font-size: 12; "></div>
<div id="descF" style="position: absolute; height: auto; width: auto; left: 330px; top: 435px; font-family: arial; "></div>
<div id="descG" style="position: absolute; height: auto; width: auto; left: 70px; top: 305px; font-family: arial; font-size: 12;"></div>
<div><img src ="images/requirements_type s.gif" width ="600" height ="500" usemap="#RT" /></div>
<map id ="RT" name="RT">
<area shape ="rect" coords ="40,67,193,110" onMouseOver="writeTextH('B usiness Requirements')"/>
<area shape ="rect" coords ="40,132,193,174" onMouseOver="writeTextJ('U ser Requirements')"/>
<area shape ="rect" coords ="40,190,193,231" onMouseOver="writeTextK('F unctional Requirements')"/>
<area shape ="rect" coords ="40,254,193,294" onMouseOver="writeTextL('Q ual of Serv Requirements')"/>
<area shape ="rect" coords ="40,313,193,354" onMouseOver="writeTextM('A ssumpt_ns & Constraints')"/>
<area shape ="rect" coords ="40,380,193,421" onMouseOver="writeTextN('I mplement_n Req_ments')"/>
<area shape ="rect" coords ="214,67,560,110" onMouseOver="writeTextP('H igh level goals. Business purpose & metrics')"/>
<area shape ="rect" coords ="214,132,560,174" onMouseOver="writeTextQ('G athered by requirements elicitation')"/>
<area shape ="rect" coords ="214,190,560,231" onMouseOver="writeTextR('B ehavior and information of solution')"/>
<area shape ="rect" coords ="214,254,560,294" onMouseOver="writeTextS('E nvironment al conditions')"/>
<area shape ="rect" coords ="214,313,560,354" onMouseOver="writeTextT('N onfunction al aspects that limit or impact')"/>
<area shape ="rect" coords ="214,380,560,421" onMouseOver="writeTextU('T ransition from current to desired, temporary')"/>
</map>
<div id="descH" style="position: absolute; height: auto; width: auto; left: 60px; top: 705px; font-family: arial; font-size: 12;"></div>
<div id="descJ" style="position: absolute; height: auto; width: auto; left: 65px; top: 765px; font-family: arial; font-size: 12; "></div>
<div id="descK" style="position: absolute; height: auto; width: auto; left: 60px; top: 825px; font-family: arial; font-size: 12; "></div>
<div id="descL" style="position: absolute; height: auto; width: auto; left: 60px; top: 885px; font-family: arial; font-size: 12; "></div>
<div id="descM" style="position: absolute; height: auto; width: auto; left: 60px; top: 950px; font-family: arial; font-size: 12; "></div>
<div id="descN" style="position: absolute; height: auto; width: auto; left: 60px; top: 1015px; font-family: arial; font-size: 12;"></div>
<div id="descP" style="position: absolute; height: auto; width: auto; left: 235px; top: 705px; font-family: arial; font-size: 12;"></div>
<div id="descQ" style="position: absolute; height: auto; width: auto; left: 235px; top: 765px; font-family: arial; font-size: 12; "></div>
<div id="descR" style="position: absolute; height: auto; width: auto; left: 235px; top: 825px; font-family: arial; font-size: 12; "></div>
<div id="descS" style="position: absolute; height: auto; width: auto; left: 235px; top: 885px; font-family: arial; font-size: 12; "></div>
<div id="descT" style="position: absolute; height: auto; width: auto; left: 235px; top: 950px; font-family: arial; font-size: 12; "></div>
<div id="descU" style="position: absolute; height: auto; width: auto; left: 235px; top: 1015px; font-family: arial; font-size: 12;"></div>
</body>
</html>
end code section ++++++++++++++++
BABOK-e.gif
Requirements-types.gif
Please forgive the long code section but don't worry, it is listed to
ask a question of concept. The code works. But I now have nineteen
functions. Perhaps there is no way to use looping or arays or some opther
method of reducing the number of functions or perhaps there is. I remember
in VB class that looping or arrays were a way of reducing the number of subroutines.
Does that apply here? If so can you give me a basic idea of the syntax?
Also a brief and specific question. (Maybe I should make this a separate question. If
so let me know.) In the diagram marked Business Anaylsis Body of Knowledge there
is text that appears, 'Enterprise Anaysis'.that Ioverlaps the box it is supposed to go in.
Is there some way of putting a line break (<br>) int the line
<area shape ="rect" coords ="65,241,140,338" onMouseOver="writeTextG('E
Thanks
Allen in Dallas
begin code section ++++++++++++++++
<html>
<head>
<script type="text/javascript">
function writeText(txt)
{
document.getElementById("d
}
function writeTextB(txt)
{
document.getElementById("d
}
function writeTextC(txt)
{
document.getElementById("d
}
function writeTextD(txt)
{
document.getElementById("d
}
function writeTextE(txt)
{
document.getElementById("d
}
function writeTextF(txt)
{
document.getElementById("d
}
function writeTextG(txt)
{
document.getElementById("d
}
function writeTextH(txt)
{
document.getElementById("d
}
function writeTextJ(txt)
{
document.getElementById("d
}
function writeTextK(txt)
{
document.getElementById("d
}
function writeTextL(txt)
{
document.getElementById("d
}
function writeTextM(txt)
{
document.getElementById("d
}
function writeTextN(txt)
{
document.getElementById("d
}
function writeTextP(txt)
{
document.getElementById("d
}
function writeTextQ(txt)
{
document.getElementById("d
}
function writeTextR(txt)
{
document.getElementById("d
}
function writeTextS(txt)
{
document.getElementById("d
}
function writeTextT(txt)
{
document.getElementById("d
}
function writeTextU(txt)
{
document.getElementById("d
}
</script>
</head>
<body>
<div><img src ="images/BABOK_e.gif" width ="780" height ="600" usemap="#RPM" /></div>
<map id ="RPM" name="RPM">
<area shape ="rect" coords ="177,145,641,176" onMouseOver="writeText('Re
<area shape ="rect" coords ="259,221,440,262" onMouseOver="writeTextB('R
<area shape ="rect" coords ="315,270,497,312" onMouseOver="writeTextC('R
<area shape ="rect" coords ="441,322,622,362" onMouseOver="writeTextD('S
<area shape ="rect" coords ="235,412,700,440" onMouseOver="writeTextE('R
<area shape ="rect" coords ="176,411,641,441" onMouseOver="writeTextF('R
<area shape ="rect" coords ="65,241,140,338" onMouseOver="writeTextG('E
</map>
<div id="desc" style="position: absolute; height: auto; width: auto; left: 280px; top: 170px; font-family: arial; "></div>
<div id="descB" style="position: absolute; height: auto; width: auto; left: 235px; top: 252px; font-family: arial; font-size: 12; "></div>
<div id="descC" style="position: absolute; height: auto; width: auto; left: 335px; top: 302px; font-family: arial; font-size: 12; "></div>
<div id="descD" style="position: absolute; height: auto; width: auto; left: 470px; top: 352px; font-family: arial; font-size: 12; "></div>
<div id="descF" style="position: absolute; height: auto; width: auto; left: 330px; top: 435px; font-family: arial; "></div>
<div id="descG" style="position: absolute; height: auto; width: auto; left: 70px; top: 305px; font-family: arial; font-size: 12;"></div>
<div><img src ="images/requirements_type
<map id ="RT" name="RT">
<area shape ="rect" coords ="40,67,193,110" onMouseOver="writeTextH('B
<area shape ="rect" coords ="40,132,193,174" onMouseOver="writeTextJ('U
<area shape ="rect" coords ="40,190,193,231" onMouseOver="writeTextK('F
<area shape ="rect" coords ="40,254,193,294" onMouseOver="writeTextL('Q
<area shape ="rect" coords ="40,313,193,354" onMouseOver="writeTextM('A
<area shape ="rect" coords ="40,380,193,421" onMouseOver="writeTextN('I
<area shape ="rect" coords ="214,67,560,110" onMouseOver="writeTextP('H
<area shape ="rect" coords ="214,132,560,174" onMouseOver="writeTextQ('G
<area shape ="rect" coords ="214,190,560,231" onMouseOver="writeTextR('B
<area shape ="rect" coords ="214,254,560,294" onMouseOver="writeTextS('E
<area shape ="rect" coords ="214,313,560,354" onMouseOver="writeTextT('N
<area shape ="rect" coords ="214,380,560,421" onMouseOver="writeTextU('T
</map>
<div id="descH" style="position: absolute; height: auto; width: auto; left: 60px; top: 705px; font-family: arial; font-size: 12;"></div>
<div id="descJ" style="position: absolute; height: auto; width: auto; left: 65px; top: 765px; font-family: arial; font-size: 12; "></div>
<div id="descK" style="position: absolute; height: auto; width: auto; left: 60px; top: 825px; font-family: arial; font-size: 12; "></div>
<div id="descL" style="position: absolute; height: auto; width: auto; left: 60px; top: 885px; font-family: arial; font-size: 12; "></div>
<div id="descM" style="position: absolute; height: auto; width: auto; left: 60px; top: 950px; font-family: arial; font-size: 12; "></div>
<div id="descN" style="position: absolute; height: auto; width: auto; left: 60px; top: 1015px; font-family: arial; font-size: 12;"></div>
<div id="descP" style="position: absolute; height: auto; width: auto; left: 235px; top: 705px; font-family: arial; font-size: 12;"></div>
<div id="descQ" style="position: absolute; height: auto; width: auto; left: 235px; top: 765px; font-family: arial; font-size: 12; "></div>
<div id="descR" style="position: absolute; height: auto; width: auto; left: 235px; top: 825px; font-family: arial; font-size: 12; "></div>
<div id="descS" style="position: absolute; height: auto; width: auto; left: 235px; top: 885px; font-family: arial; font-size: 12; "></div>
<div id="descT" style="position: absolute; height: auto; width: auto; left: 235px; top: 950px; font-family: arial; font-size: 12; "></div>
<div id="descU" style="position: absolute; height: auto; width: auto; left: 235px; top: 1015px; font-family: arial; font-size: 12;"></div>
</body>
</html>
end code section ++++++++++++++++
BABOK-e.gif
Requirements-types.gif
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER