- Slide show
- Video
- Products
You can choose which of these three beds you want to embed as the default view in your web site. The previous blog posting embedded the slide show view. Let's embed the same store but choosing the products view this time.
<iframe frameborder="0" width="100%" height="330px" scrolling="no" seamless="seamless" src="http://dev.42andpark.com/product-shopping.jsp?partnerId=53443"></iframe>The narrow width of this blog is typical of the space available to us on many web sites, especially those that use fixed width layouts like this blog. This store might look better if we reduced the size of everything. You can do this by passing an optional zoom parameter with your store that specifies a zoom factor. The number 100 means 100%, which is the default and what you see above. Smaller numbers zoom out, so 50% would be very zoomed out - here's the code for the store below:
<iframe frameborder="0" width="100%" height="330px" scrolling="no" seamless="seamless" src="http://dev.42andpark.com/product-shopping.jsp?partnerId=53443&zoom=50"></iframe>
You can see how the store looks much better in terms of its layout - the text fields aren't running into each other. Unfortunately, this is just too small to read! Maybe a larger zoom would look better. Let's try 80%
That's a little better. You may have to experiment with different zooms to find the best balance.
You can also embed a store in video mode if it has a video. You do this by selecting the video view as the initial view. Here's a different store embedded in it's video mode with this embed code:
<iframe frameborder="0" height="330px" scrolling="no" seamless="seamless" src="http://publisher.42andpark.com/product-video.jsp?partnerId=51785&zoom=100" width="100%"></iframe>
No comments:
Post a Comment