RapidWeaver FAQ - Popup windows

How can I add pop up windows to RapidWeaver?
Example (Click on the image):
1. Copy and paste the following code to the page where you want the popup link which will open the popup window to appear
<div align="center">
<A HREF="#" onClick="window.open('page.html','_blank','toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width=300, height=200');return(false)">TextToDisplay</A>
</div>
2. Where it says page.html put the url of the page you want to open in the popup.
Where it says width and height you can decide how big the popup window has to be
Where it says TextToDisplay put whatever you would like to be displayed as the title of the link.
If you want to have an image displaying instead of the text for the links simply replace the text with:
<img src="urloftheimage">
urloftheimage: Put all the images you want to use for menus in a folder on your desktop. Upload the folder containing your images to your server (example: create a Folder named MenuImages.
- For MobileMe go to the Finder menu and select Go/iDisk/My iDisk/ or hit Schift+Command(Apple)+i and then go to /Web/Sites/. Drop your MenuImages folder into the Sites folder.
Entering: http://web.me.com/username/MenuImages/filename.jpg in your browser should bring up this file.
- If you're publishing to folder put it in the main location on your server using an ftp program
Entering: http://yourbaseurl.com/MenuImages/filename.jpg in your browser should bring up this file.
3. Once you added the code to RapidWeaver select it all and go to “< >” (Apply HTML markup) and choose “Code”. When changing to Preview mode you will see the link or an image appearing.
Note: With the previously described method people will have to click to open the popup window. There's a code that actually opens the popup window automatically when someone is visiting a page. The problem is: Most browsers will block it due to security reasons. Most people have “Block auto-popup windows” enabled in their browsers. The window will not popup for them. They just get notified that the browser blocked a popup and can then chose to allow it. And if you put the code to every single page I guess a window will pop up on every single page a user looks at. Bottom line: it’s not recommended, thus I will not provide it here.
RapidWeaverFAQ.org - Tutorials, Tips & Tricks is made with RapidWeaver and for RapidWeaver.
It’s presented by Cédric and hosted by HostExcellence.com
I would like you to give me feedback on this page by commenting in the appropriate section of the Forum. Tell me if it's been helpful. If it wasn’t please tell me why. If you think something is missing please tell me what. If you have questions about it post them there and I will probably try to give you an answer.
Thank you for visiting and supporting my website.
- Cédric -
