Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE DREAMWEAVER: HomeDreamweaver ForumDreamweaver TutorialsFAQAdobe FlashWeb Design

Adobe Dreamweaver FAQ

The Questions

  1. Flash
    1. Why can't I embed my Flash Video into my web page?
    2. How do I have the page redirect after the Flash Intro?
  2. General Site Information
    1. How do I Create the Bookmark Icon (Favicon)?
    2. Creating an Email Form
    3. How can I check what my site looks like in other browsers?
  3. Images
    1. Why is there a blue / purple border around my image?
    2. How do I make an Image Gallery out of a Folder of Images
  4. Page Layout
    1. What is Absolute Positioning?
    2. How do I put Scrollbars on Divs and Other Elements?
    3. How do I Overlay Text over an Image
    4. How do I Overlay HTML Elements over Flash Elements?
    5. The Spry Menu Bar is Messing up in IE?
    6. My Side Navigation has Unwanted Space, how can I get rid of it?
  5. Getting Started
    1. Where can I learn some basics on CSS?
  6. Internet Explorer Errors
    1. Active X keeps popping up in IE Explorer!


The Answers

  1. Flash
    1. Why can't I embed my Flash Video into my web page?
      Flash Video can sometimes refer to SWF files and sometimes to FLV files. SWF stands for Shock Wave File and is generally the file that is the movie player that is playing the FLV (Flash Video) File.
      • To embed a FLV into a web page using Dreamweaver go to Insert > Media > Flash Video...
      • To embed a SWF into a web page using Dreamweaver go to Insert > Media > Flash
      The most common mistake is using the wrong command when inserting.

      For more specifics check out this tutorial:
      http://library.creativecow.net/articles/chaffin_abraham/embedding-flash-videos.php
    2. How do I have the page redirect after the Flash Intro?
      You would modify the flash file so that the last frame you want the viewer to see has an action script command:


      getURL("http://www.creativecow.net","_top");



      Make sure if you are using Flash CS3 you use ActionScript 2.0 or you will get a 1180: Call to a possibly undefined method getURL. error because getURL doesn't exist in AS 2.


      If you are using CS3 and/or ActionScript 3.0 then you would use this method:

      instance_name_of_button.addEventListener(MouseEvent.MOUSE_UP,goto_function);

      function goto_function(event:Event):void {
          var request:URLRequest = new URLRequest("http://www.creativecow.net");
          navigateToURL(request,"_top");
      }




      http://forums.creativecow.net/readpost/191/855719
  2. General Site Information
    1. How do I Create the Bookmark Icon (Favicon)?
      CreativeCOW Favicon The Bookmark or Favicon appears next to the URL in most browsers and is a small 16x16 icon that represents your site.

      To create this icon at this time you need a special program that can export icon files (.ico) Photoshop at this time doesn't support this. However, sometimes saving as a bmp and then changing the extension to .ico works, but not consistently.

      There's a Photoshop plugin at http://www.telegraphics.com.au/sw/#icoformat that allows you to save in the ico format. Once you've created your icon using this plugin save it as favicon.ico and put it in the root directory of your web site. The browsers will look for it there with that name automatically.

      Another program you could use to create it is
      http://www.rw-designer.com/online_icon_maker.php
      or Google "free icon creator"

      You can also use this code in the head of your HTML file <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"> but it's not necessary unless you want to specify a different icon for a specific page.
    2. Creating an Email Form
      There are different methods for creating an email submission form.
      Method 1 uses HTML code that can be fully created in Dreamweaver and uses the users own email settings to send the email.
      Method 2 uses a 3rd party service to send the email (Google free contact form) or go to a site like http://www.mycontactform.com/
      Method 3 uses server side scripting that sends the email via the server the web page is hosted on (below is a PHP example)

      HTML Version:

      To create an HTML mailto form in Dreamweaver, follow these steps:
      1. Create the form - Insert > Form > Form
      2. Set the form properties:
        • Action: "mailto: email@address.com"
        • Method: "GET"
        • Enctype: "text/plain"
      3. Create a submit button - Insert > Form > Button
      This will give you a submission form that attempts to use the customer's web browser, email client, and/or OS to send the email.



      PHP Version:

      Here is a simple PHP script that will allow you to send email via a contact form submission. Be aware that you shouldn't use this form in your website unless you want people to use the form to send you spam messages. You can adapt the code here or Google "PHP contact form" for more examples.
      1. Create a new PHP document and call it whatever.php
      2. Switch to code view and copy and paste the code below
      3. Modify the code as needed
      4. Save the file and upload it to your server
      5. Test it out
       <?
      if($_REQUEST[message]){ //This checks if the form has been submitted or not

          $to="YourEmailAddress@YourDomainName.Com"; // Modify the email address to be the email address you want to receive the email via your form.
          $from=$_REQUEST[emailaddress]; // The from variable is set by the form field that was sent
          $subject="Contact From Your Website"; // This is the subject of the message being sent to you from your form
          $message=$from."- ".$_REQUEST[message]; // This is the message to be sent to you
          mail($to,$subject,$message); // This is the actual sending of the email using PHP's mail function http://us.php.net/manual/en/function.mail.php
         
          $confirmto=$_REQUEST[emailaddress]; // The email address we'll send a confirmation to
          $confirmsubject="Your Confirmation"; // Confirmation Email Subject
          $confirmfrom="noreply@YourDomainName.Com"; // Your confirming emailer address
          $confirmmessage="Thank you for your email, we will respond promptly."; // Message to send to confirm
          //mail($confirmto,$confirmsubject,$confirmmessage); // Confirmation - uncomment this line to use it

          //After the message is sent we will display a thank you message
          ?>
          Thank you... Your message has been sent.

      <? } else { // If the form has not been submitted show the form ?>

          <form method="post" action="">
          Email: <input type="text" name="emailaddress"><br>
          Message: <br>
          <textarea name="message"></textarea><br>
          <input type="submit" value="send" />
          </form>


      <? } // Closing tag of the if and else statements ?>
    3. How can I check what my site looks like in other browsers?
      Try the free online service here: http://browsershots.org/
  3. Images
    1. Why is there a blue / purple border around my image?
      If the image is a link to another page it will have a 1 pixel border that is the same color as your hyperlinks by default. To remove the border you need to set the image border to 0 or set the border color to a color that you prefer other than the default link color of hyperlinks.
    2. How do I make an Image Gallery out of a Folder of Images
  4. Page Layout
    1. What is Absolute Positioning?
      Absolute Positioning is positioning of an element relative to the position of its parent element. This means that the position of the element will be offset from the position of the parent element using the top, right, bottom, or left CSS properties. The top, right, bottom, and left property values set the positions of the boundaries corresponding with their names. For instance setting the right and bottom properties with a value of 0 would place the right and bottom sides of an element in the bottom right hand corner of its parent element.

      Example of absolute and relative positioning being used as a parent and child relationship:
      http://forums.creativecow.net/thread/191/859303
    2. How do I put Scrollbars on Divs and Other Elements?
      You can put scrollbars on most container elements or remove a scrollbar by editing the overflow style attribute in css or in the style tag. The threads below have a couple examples:




    3. How do I Overlay Text over an Image
    4. How do I Overlay HTML Elements over Flash Elements?
      Generally to overlay elements over one another in HTML you use the z-index property and some sort of absolute or fixed positioning to move the elements around. Negative or lower z-index values places elements behind elements with higher z-index values. This method holds true with flash and DHTML elements only you need to add one trick - WMODE="transparent" you have to export the SWF file in windowless mode. When you import the flash element into Dreamweaver you need to add a parameter by selecting the element and then going to the properties pane and click on Parameters... Your Parameter is WMODE and the value is transparent. This will allow the flash object to float up and down using the z-index property like other HTML elements would.

    5. The Spry Menu Bar is Messing up in IE?
      The Spry Sub Menu Bar is sticking out to the Right!
      If you have set the width property of the ul.MenuBarHorizontal to auto then you are going to experience IE messing the spry menu bar up. To fix this you need to add this to your css code:

      ul.MenuBarHorizontal li ul li{ 
          clear: left; 
      }


      If you have set the width property of the ul.MenuBarVertical to auto then you are going to experience IE messing the spry menu bar up as well. To fix this you need to add this to your css code:

      ul.MenuBarVertical li{ 
          clear: left; 
      }
       

      The Spry Sub Menu Bar shows up at the top of the screen!
      If the Spry menu bar seems to not show up at all or is showing up at the top of the screen then you may have added some unwanted code around the tags in the spry menu bar.
      Check out this post:
      http://forums.creativecow.net/readpost/191/858227
    6. My Side Navigation has Unwanted Space, how can I get rid of it?
      If you have a site that is using a table layout for your entire page with the side navigation included in that table you may experience unwanted space in the cells as the page expands. Read this thread for information on this problem: http://forums.creativecow.net/thread/191/856120
  5. Getting Started
    1. Where can I learn some basics on CSS?
  6. Internet Explorer Errors
    1. Active X keeps popping up in IE Explorer!
      This message keeps showing up on my page
      "To help Protect your security, internet Explorer has restricted this webpage from running scripts or ActiveX controls that could access your computer".

      This will not happen when you load the page up to the web, it is an extra security feature in IE when testing locally on your computer, but it can get pretty annoying, so this is a fix for you:

      • Open up the page in question
      • Go to the COMMANDS menu
      • Select INSERT MARK OF THE WEB
      • Save the page


FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]