Add a background sound to your web page in Microsoft Expression Web November 16, 2009
Posted by minals in Expression Web Tips and Tricks.Tags: add media to web page, add sound to web page, Expression Web, Expression Web 2, Expression Web 3, Expression Web Tips and Tricks, HTML, website
1 comment so far
You must have come across websites that play sound (some music) while you are visiting it. Some design sites, personal sites of stylists or e-cards and gift sites usually have such background sound, sometimes on the home page or to all the pages. Personally, I find it irritating. Though you can actually specify how many times the sound should be played after the page is loaded or should it be continuously played in a loop. But if you would like to add some music to your website, here is how you can do that.
To add a background sound
- Open the website and then open the web page in Design View.
- Right click the page and choose Page Properties.
- In the ‘Page Properties’ dialog box (see image below), under the General tab, in the Background Sound section, browse to the location of the sound file and choose the file and click Open.
- In the same window, to choose the duration of the sound, do either of the following:
- Check the Forever checkbox, to play the sound continuously unless the window is closed.
- Uncheck the above checkbox and enter/choose an integer to play the sound for a fixed number of times.
NOTES:
- The background sound would be added only on the page you are configuring on. To add it on other pages, follow the same steps on the other pages.
- The <bgsound /> tag is added when you add a sound to the page. This featureis not supported in Mozilla Firefox browsers.
To remove a background sound, in the General tab of the Page Properties window, delete the location under the Background sound.
TIP: As a good practice, provide the users with an option to turn off the sound.
Import custom code snippets from Expression Web 2 to Expression Web 3 November 11, 2009
Posted by minals in Expression Web Tips and Tricks.Tags: code snippets, Expression Web 2, Expression Web 3, import code snippets from Expression Web 2
3 comments
In my earlier article Insert Code Snippets in Microsoft Expression Web 3, we saw how to use the built-in code snippets and create your own snippets to make your coding speedier. But the custom code snippets that you created in earlier version of Expression Web (EW 2) are not accessible in EW 3. A simple solution to this is to import the code snippet xml file to your EW 3 and use it.
The built-in code snippets are found in these locations:
In Expression Web 2
C:\Program Files\Microsoft Expression\Web 2\Templates\1033\Snippets12\FPSnippets.xml
In Expression Web 3
C:\Program Files\Microsoft Expression\Web 3\en\Snippets\snippets.xml
Any custom code snippets you add are stored into your roaming profile. In Expression Web 2, they were stored at:
C:\Users\User Name\AppData\Roaming\Microsoft\Expression\Web 2\Snippets\SnippetsCustom.xml
In Expression Web 3, they are located at:
Windows Vista
C:\Users\ User Name\AppData\Roaming\Microsoft\Expression\Web 3\Legacy\Expression\Web 3\Snippets\SnippetsCustom.xml
Windows XP
C:\Users\ User Name\Application Data\Microsoft\Expression\Web 2\Snippets\SnippetsCustom.xml
Both these ‘xml’ files are different. While working in EW3, when you add code snippets they will be stored in the ‘SnippetsCustom.xml’ in Expression Web 3 folder.
To continue using the SnippetsCustom.xml from Expression Web 2 in Expression Web 3, before you start working in Expression Web 3, replace it with the one in Expression Web 2 folder. You need not delete the SnippetsCustom.xml that was created by default in Expression Web 3 folder, just rename it, and copy-paste the Expression Web 2 ‘xml’ file over here. Now you can use all your older snippets from Expression Web 2 in Expression Web 3 and any more you add would be updated in this file itself.
Set HTML rules to help search text in your code in Microsoft Expression Web November 9, 2009
Posted by minals in Expression Web Tips and Tricks.Tags: Expression Web, Expression Web 2, Expression Web 3, find, HTML, HTML rules, Microsoft, replace, set HTML rules, set HTML rules to find
2 comments
We often use the Find and Replace tool (CTRL + F) to search for words, in our context, tags, elements, properties and so on in our page. But the same dialog box offers a cool feature of setting HTML rules in your search. These HTML rules let you add conditions as to where in your code to search. Let us take a look at how that can be done.
Follow these steps to set HTML rules for searching -
- Do either of the following
- To search within a single page, open the page.
- To search the entire site, open the site.
- To search more than one page in a website, open the site and in the Folder List panel or the Site View, select the pages. Else open all those pages you want to search.
- Go to the Edit menu and choose Find… to find text, and Replace… to replace text. Both would launch the same Find and Replace dialog box, with different tabs selected by default.
- Click on the ‘HTML Rules…’ button. The HTML Rules dialog box would be prompted.
- Click on ‘New rule…’ In the drop down box (left bottom corner of the window, choose to set the rule ‘Inside tag’ or ‘Not inside tag’. In either case, select a tag, from the other drop down. The rule would be created.
- To configure the rule, click on the ‘New rule…’ (appears as a child under the rule we created above, in the tree view). Choose the options in the bottom left corner for the rule. They are as follows:
a. With attribute: to search inside a tag with the given attribute. For example, inside tag <p>, search for only those tags that have attribute class = content_text.
b. Without attribute: to search inside a tag without the given attribute. For example, inside tag <p>, search for all other tags except for the ones with attribute class = content_text.
c. Containing: to search only if it is in another text or tag that you specify.
d. Not Containing: to search only if it is not another text or tag that you specify.
e. Inside Tag: to search only if it is in a tag that you specify.
f. Not Inside Tag: to search only if it is not in a tag that you specify. - To delete a rule, choose ‘Delete rule’ and to delete all the rules, choose ‘Delete all’.
Create a watermark in Adobe Photoshop CS4 November 3, 2009
Posted by minals in Photoshop Articles.Tags: articles, CS3, CS4, Photoshop, Photoshop tutorials, Tips and Tricks
add a comment
A Watermark is a faint text or a lesser visible image, embedded in your document or work, to personalize it and to protect it from its illegal use. In this article, we will learn how to create a watermark in Adobe Photoshop CS4.
- A. Create a new document
- Go to File > New. The ‘New’ window would be launched.
- Enter a name for the document.
- Enter the width and height (ideal would be 1600×1200).
- Enter a resolution of 300pixels/inch.
- Change the Background Contents to Transparent.
- B. Create the text that is to be watermarked
- Choose the Horizontal Type Tool from the toolbox.
- Click and drag, then release the key to draw the text box. Enter the text you want to use as a watermark
- Choose a color for your text, by selecting the ‘Set the color’ button from the Formatting toolbar at the top of the window.
- Set the opacity to anywhere from 45% to 65%.
- You can add effects like drop shadow, bevel and emboss, outer glow, or any other to the text. In this example we will add drop shadow and bevel to the text. Select the text layer in the Layers palette and choose the ‘fx’ button in the bottom of the same palette (or double click on the layer). This will display the Layer Style window. Check the box next to Drop Shadow and play around with the options. Similarly check the box Bevel and Emboss and explore individual options, until you are satisfied with the resulting image.
- C. Save the image (in formats like png, gif or jpeg) and your watermark is ready for use.
Useful Resources for Microsoft Expression Web October 27, 2009
Posted by minals in Expression Web Tips and Tricks.Tags: css, Expression, Expression Suite, Expression Web, Expression Web 2, Expression Web 3, HTML, Microsoft, tips, tutorials, website
1 comment so far
Here are some websites and blogs that offer very informative tutorials, articles, tips, tricks, trainings, ebooks and other resources for Microsoft Expression Web.
- http://expression.microsoft.com/en-us/cc197140.aspx for tutorials, videos, free Expression Web templates.
- http://any-expression.com - is owned by Tina Clarke, who is a fellow Expression Web MVP. The site features plenty of tutorials, tips, ebooks on Expression Web and FrontPage.
Her blog http://www.expression-web.net/ also offers useful Expression Web resources. - http://by-expression.com features excellent Tutorials and Sample Sites by Expression Web MVP, Cheryl D. Wise. She also conducts trainings for EW.
- http://www.expression-web-designer-help.com/ is a great site to seek help in MS Expression Web, run by Jim Davidson, MVP Expression Web.
- http://www.expression-web-tutorials.com/ and http://www.expression-web-tips.com/
Owned by Expression Web MVP, Patricia Ann Geary, these sites include EW tutorials, templates, tips and news on EW as well as FrontPage tutorials.
I am a Microsoft MVP! October 1, 2009
Posted by minals in Misc Ramblings.Tags: Microsoft, mvp
8 comments
I am a Microsoft MVP – Expression Web!
I want to share a great news with all ’saffronstroke.com’ readers. I have been awarded with the Microsoft Most Valuable Professional (MVP) award today, and I am very glad to have received this award.
MVP award is given to outstanding members from technology communities around the world, who share their expertise with others. This is a token of appreciation from Microsoft. I feel proud!
I feel my efforts have been recognized. I have been contributing Microsoft Expression Web articles regularly on www.dotnetcurry.com and http://saffronstroke.com. As I would like to thank my husband Suprotim for being my inspiration and encouragement, this would not have been possible without your comments and support either. So I thank you all! Keep the feedback coming in.
To add a line height to a paragraph using CSS in Microsoft Expression Web 3 September 23, 2009
Posted by minals in Expression Web Tips and Tricks.Tags: add line-height to paragraph, css, Expression Web 3, HTML, line height, paragraph
3 comments
There are two ways to do this with CSS;
- By assigning a line height to all the paragraphs:
- If you do not want a same line-height for all the paragraphs, define a class selector and assign a line-height value. The class selector could be generic (.line_ht) or specific to paragraph element (p.line_ht). (Both these concepts are explained later in the article.) To define these styles follow the same steps given above in pt. 1. Then apply the styles to the paragraphs.
In the Apply Styles or Manage Styles panel (task pane in earlier versions of Expression Web) click on ‘New Style’. In the selector box, type in ‘p’ and in the Block category, enter a value for line-height, say 20px.
Now all the paragraphs will have a same line height of 20px.
Difference between Generic Class Selectors and Specific Class Selectors
A generic class selector could be assigned to any element like <div class=” line_ht”></div>. Unlike this kind of class selector, the specific class selector will be applied only to those paragraph elements that have a class attribute containing the word ‘line_ht’, and no other elements.
Take a look at these examples to make things more clear;
/*Element Selector */
p { line-height : 20px;}
<p>This paragraph will have a line-height of 20px</p>
<div> This paragraph will have the default line-height </div>
/* Generic Class Selector */
.line_ht { line-height : 20px;}
<p class=” line_ht”>This paragraph will have a line-height of 20px</p>
<span class=” line_ht”>This paragraph will also have a line-height of 20px</span>
<div class=” line_ht”>This paragraph too will have a line-height of 20px</div>
/*Specific Class Selector */
p.line_ht { line-height : 20px;}
<p class=” line_ht”>This paragraph will have a line-height of 20px</p>
<p> This paragraph will have the default line-height <p/>
To automatically add form tags around form controls in Microsoft Expression Web 3 September 16, 2009
Posted by minals in Expression Web Tips and Tricks.Tags: Expression Web, Expression Web 2, Expression Web 3, form, tips
add a comment
When you create a form, you add form controls to the form. In other words, form controls like textboxes, radio buttons, and check boxes are grouped inside form tags. But if you add form controls directly to your page, they are not enclosed within the form. But you can set Microsoft Expression Web to automatically add form tags around any form control that you add to your page. This will take care of the form controls if they are not already enclosed within the form tags.
To automatically add form tags around HTML form controls, follow these steps:
- Go to the Tools menu > choose Page Editor Options.
- In the Page Editor Options dialog box, click the General tab.
- Select the checkbox: ‘Automatically enclose form fields within a form’.
Customize the appearance of Code and Design View in Microsoft Expression Web 3 September 9, 2009
Posted by minals in Expression Web Tips and Tricks.Tags: code view, customize appearance of design and code view, design view, Expression, Expression Suite, Expression Web, Expression Web 2, Expression Web 3, HTML
2 comments
As you create a new page and start adding content to it, or when you open an existing page, the way it appears in Code view or Design view is laid down by Expression Web. For instance, in Code view normal text appears in black, HTML comment appears in gray, in Design View Layout table border is green in color and so on .This is so that you can differentiate between the different elements and content on your page. But you can always customize them according to your liking.
To customize colors and font in Code and Design View
- Go to Tools menu > Page Editor Options.
- In the Page Editor Options dialog box, switch to Color Coding tab.
- The default selection is Code View unless you changed it. Choose the view you want to customize.
- Choose an item from under the Display items box and select Item Foreground, Item Background and Font style.
- Click OK.










