This easy to follow inline JavaScript is a popular way of letting your users see additional information without navigating away from the current page. With Javascript you can specify the dimensions, visible toolbars, and scrollbars of this newly created window. It can used to show images or HTML documents.
If you wish to have the window contain text, substitute the <img> for your own HTML.
If you are using the Javascript to display images, you will want the width/height dimensions to be about 10 pixels bigger than the side of the image to prevent visable scrollbars.
<a href="javascript:void(0)" onclick="window.open(‘popwindow.jpg’,'enlarge’,'width=540, height=410, menubar=no, status=no, scrollbars=yes’)" title="Snuggle Time"><img src="popwindow_thumbnail.jpg" width="150" height="111" alt="Snuggle Time" style="border: 1px solid #dddddd; padding: 3px;" /></a>
</div>
Related posts:
- Javascript: Image Swap
- Javascript: Easy Rollover Buttons
- Formatting Tables
- Background Color & Images – Not Tables!
- Images <img>
- CSS: Menu Lists
- CSS: Padding
- CSS: Margin
- CSS: Border
- SEO: Image Optimization
- SEO: Link Building
- Menu Lists <ul>, Definition Lists <dl>
- CSS: Font Properties
- Heading Tag <h1> – <h6>
- CSS Tutorials
- Javascript Tutorials
- KDWHD Tutorials
- eBay Tutorials
- SEO Tutorials
- HTML 4.01 Strict Tutorials
- Paragraph Tags <p>
- SEO: Keyword Selection
- Beginner HTML: Your First Webpage
- CSS: External Style Sheets
- CSS Syntax
- Video: How to Install your “me” Page on eBay
- Video: How to Create Custom eBay Store Pages
- Video: How to Install Custom eBay Store Navigation
- Video: How to Install Custom eBay Store Front Page
- How Do I Add a Background Image or Color?
Comments
Leave a comment Trackback