Wrox Programmer Forums
|
BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4
This is the forum to discuss the Wrox book Beginning Dreamweaver MX by Charles E. Brown, Imar Spaanjaars, Todd Marks; ISBN: 9780764544040
Please indicate which version of the book you are using when posting questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 10th, 2005, 08:07 AM
Authorized User
 
Join Date: Apr 2005
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default pop up windows Page 89

Hi All

It is not possible to attach a pop up as shown on page 89 to a text button. I have made text buttons so they will reduce with page sizes.

How can I achieve my objective. I have not completed the book so it may be covered later on.

Looking forward in the hope it can be done.

All the Best

Jacky Kenna

 
Old June 11th, 2005, 06:39 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

What kind of text button are you referring to? An <input type="button"> ?

I don't think that's possible directly, but maybe you can add one to an image, and then cut and paste the code on te button.

Personally, I'd stay far and far away from the pop up menus. They don't work very well, are hard to maintain, and lately there have been a lot of good CSS alternatives......

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old June 13th, 2005, 06:44 AM
Authorized User
 
Join Date: Apr 2005
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The reason I had thought of using pop ups is because of the control of Navigation. Possibly pop up is the incorrect name. I see them on loads of sites. In the Cooking Place they are used to advantage for Regions/Italian/Sitalian. One mouse click rather than 3.

This time code attached.
You will see I have done what I think is called a text buttons. I am using these because my colleagues who are doing the more difficult PHP want this style saying it is faster and more flexible. The page reduces in width for one.

On the other hand I am not that concerned at the reducing ability. As long as I can make it reduce a little then I will be happy. Companies in the business I am aiming at have a minimum of 17” flat screens with 1024 x 768 res. My project is not for the public consumption.

Looking at your own site you have the mouse over and images etc. I also see that DM preloads the images so that there is no time delay at all. Control seems much easier also.
I assume that the images and the behaviours are made in FW. Or there could be CSS files as you were recommending the other day.

Jacky



 
Old June 13th, 2005, 06:59 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Didn't see any code, but I assume you *are* using the pop-up menus provided by Dreamweaver. Again, it's better not to use them on any serious site because they come with a lot of problems.

Check out the SuckerFish menus: http://www.alistapart.com/articles/dropdowns/
Nice, clean, standards based XHTML and CSS together can do wonderful tricks, as demonstrated on our corporate site: http://www.designit.nl The menus on that site are based on the SuckerFish examples with a lot of tweaking......

Not sure what you mean with "my site" but if you're referring to imar.spaanjaars.com I do indeed use simple images. No preloading though. The images are so small they load very fast. I created them with Photoshop and Fireworks. All other navigation is done with a submenu placed below the main menu. Easy to setup, but a bit inflexible as it is hard to add more items than the screen width allows.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old June 13th, 2005, 01:44 PM
Authorized User
 
Join Date: Apr 2005
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar

I have taken on board the advice re navigation and used the system recommended on pages 238 onwards. I attach the code this time. All is satisfactory save that the link for the page I am on does not alter in size to identify itself to the user. In BGDW on page 248 you refer to the JavaScript code making the current page link appear larger as we had asked out code to do. I have gone through your instructions and directions but I can not see where the reference to the increased size for the open page. Maybe I am missing something or because I have set the page to PHP/MYSQL although JavaScript is separate.

Hopefully my assumptions are correct and that I have just made a simple mistake.

Again All the best

Jacky Kenna
I have also looked at http://www.alistapart.com/articles/dropdowns/ . Thanks.



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>Mrns Main Template 1st level</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--


-->
</style>
<link href="../stylesheets/mrnsStyles.css" rel="stylesheet" type="text/css">

<style type="text/css">
<!--
.style1 {font-size: x-small}
.style3 {font-size: small}
td {
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
}
-->
</style>
</head>

<body>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#B7E8FF">
          <tr bgcolor="#B7E8FF" >
                <td width="24">&nbsp;</td>
                <td width="80%" rowspan="3"><img src="../images/logo.png" width="241" height="73"></td>
                <td width="10">&nbsp;</td>
                <td width="13">&nbsp;</td>
                <td width="248">
                <a href="../logOn.php" class="label">Customer Log on</a></td>
                <td width="24">&nbsp;</td>
          </tr>
          <tr bgcolor="#B7E8FF" >
            <td width="24">&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td width="248"><a href="../yrAcc.php">Your Account</a> </td>
            <td width="24">&nbsp;</td>
        <tr bgcolor="#B7E8FF" >
            <td width="24">&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td width="248"><span class="labelLeft">Logged on as: </span>
            <td class="label">&nbsp;</td>
               <td width="24">&nbsp;</td>
          </tr>
</table>
          </tr>
          <tr><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" background="../images/btnBgCol.png" bgcolor="#C1CBD7">
      <tr>
        <td>&nbsp;</td>
        <td><table width="100%" border="0" align="right" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><a href="../Indexmrnswebsite2.php">Home</a></td>
                    <td>&nbsp;&nbsp;&nbsp;</td>
                    <td><a href="../aboutUs.php">About us</a></td>
                    <td>&nbsp;&nbsp;&nbsp;</td>
                    <td><a href="../proSel.php">Project Selector</a></td>
                    <td>&nbsp;&nbsp;&nbsp;</td>
                        <td><a href="../recruit.php">Recruitment</a></td>
                    <td>&nbsp;&nbsp;&nbsp;</td>
                    <td><a href="../mgmtRpt.php">Management Reports</a></td>
                    <td>&nbsp;&nbsp;&nbsp;</td>
                    <td><a href="../controler.php">Controler</a></td>
                    <td>&nbsp;&nbsp;&nbsp;</td>
                    <td><a href="../contact.php">Contact us</a></td>
                    <td>&nbsp;&nbsp;&nbsp;</td>
                    <td><a href="../help.php">Help</a></td>

                  </tr>
            </table>
        </td>
      </tr>
    </table>
            <br>
            <br>
            <script language="JavaScript" type="text/javascript">
       Var sPageName = '<%=Request.ServerVariables("SCRIPT_NAME")%>';
       sPageName = sPageName.substr(sPageName.lastIndexOf('/')
                                   + 1) .toLowercase();
        sPageName = sPageName.substr (0, sPageName.lastIndexOf('.'));
       if (document.getElementById(sPageName))
    {
        document.getElementById(sPageName) .style.fontweight = 'Bold';
        document.getElementById(sPageName) .style.fontsize = '14pt';
    }</script></td>
  </tr>
</table>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="24"><img src="../images/spacerRht.png" width="20" height="400"></td>
    <td valign="top">
      <p>Content </p>
      <p>Over type in code view and enter whatever cose we have elsewhere as though this were a normal page </p>
    </td>
    <td width="24">&nbsp;</td>
  </tr>
</table>

        <table width="100%" border="0" cellpadding="0" cellspacing="0" background="../images/btnBgCol.png" bgcolor="#C1CBD7">
          <tr>
            <td width="24">&nbsp;</td>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td class="labelLeft">&copy; All rights Reserved 2005 </td>
                  <td><a href="../aboutUs.php">About us </a></td>
                  <td><a href="../sales.php">Sales </a></td>
                  <td><a href="../help.php">Help </a></td>
                  <td><a href="../contact.php">Contact Us</a></td>
                  <br>
                  <script language="JavaScript" type="text/javascript">
       Var sPageName = '<%=Request.ServerVariables("SCRIPT_NAME")%>';
       sPageName = sPageName.substr(sPageName.lastIndexOf('/')
                                   + 1) .toLowercase();
        sPageName = sPageName.substr (0, sPageName.lastIndexOf('.'));
       if (document.getElementById(sPageName))
    {
        document.getElementById(sPageName) .style.fontweight = 'Bold';
        document.getElementById(sPageName) .style.fontsize = '14pt';
    }</script>
                </tr>
            </table></td>
            <td width="24">&nbsp;</td>
          </tr>
        </table>

        <tr bgcolor="#C1CBD7" background="../images/btnBgCol.png">
                <td>&nbsp;</td>
                <td>&nbsp; &nbsp; </td>
</tr>
</body>
</html>

Style Steets


.labelRight {
    font-family: Arial, Helvetica, sans-serif;
    font-size: x-small;
    font-style: normal;
    font-weight: normal;
    color: #000000;
    text-align: right;
    border: thin;
}
a:link {
    font-family: Arial, Helvetica, sans-serif;
    font-size: x-small;
    text-transform: none;
    color: #000000;
    text-decoration: underline;
    background-repeat: no-repeat;
    background-position: center 25px;
    text-align: center;
}
a:visited {
    font-family: Arial, Helvetica, sans-serif;
    font-size: x-small;
    color: #000000;
}
a:hover {
    font-family: Arial, Helvetica, sans-serif;
    font-size: small;
    color: #FF0000;
}

a:active {
    font-family: Arial, Helvetica, sans-serif;
    font-size: small;
    color: #0000FF;
    font-weight: bold;
}


h5 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: x-small;
    color: #000000;
    text-align: left;
    text-transform: none;
    font-style: normal;
    line-height: normal;
    font-weight: lighter;
    font-variant: normal;
}

.button {
    font-family: Arial, Helvetica, sans-serif;
    font-size: x-small;
    font-weight: normal;
    text-transform: capitalize;
    color: #000000;
}
body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
}
h4 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: small;
    font-style: italic;
    font-weight: lighter;
    text-transform: none;
    color: #FF0000;
    text-align: center;
}
h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: medium;
    font-weight: lighter;
    text-transform: none;
    color: #FF0000;
    text-align: center;
}
.labelLeft {

    font-family: Arial, Helvetica, sans-serif;
    font-size: x-small;
    font-style: normal;
    font-weight: normal;
    color: #000000;
    text-align: left;
    border: thin;
}
.labelCentre {

    font-family: Arial, Helvetica, sans-serif;
    font-size: x-small;
    font-style: normal;
    font-weight: normal;
    color: #000000;
    text-align: center;
    border: thin;
}


 
Old June 13th, 2005, 01:53 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I think this is a known issue with the book. The sheet of paper simply isn't wide enough to hold this text:

sPageName = sPageName.substr(sPageName.lastIndexOf('/')
               + 1) .toLowercase();

It should in fact be:

sPageName = sPageName.substr(sPageName.lastIndexOf('/') + 1) .toLowercase();

all on one line.

Does that work?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Group Four by Massive Attack (Track 10 from the album: Mezzanine) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Pop up Windows with VBA Lars Ronnevig Beginning VB 6 1 February 13th, 2008 03:40 PM
Hide application windows when using Pop-Up form mmcdonal Access VBA 4 October 25th, 2005 06:31 AM
Menus and pop-up windows socoolbrewster Access 5 March 4th, 2004 06:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.