Can I hyperlink based on a control selection event?

S

SteveB

I'd like to use Publisher for an interactive web application prototype to
validate requirements with users. I need to be able to build realistic
screens quickly and to change them on the fly as the user reacts. I don't
need an actual database. I just want them to visualize what happens as they
might use an app.

Is there a way to hyperlink to another publisher page based on a control
selection? An example would be to move to another page based on a radio
button or drop down list selection. Selecting Yes would link to one page and
No would link to a different page.

If this is possible, it would make Publisher perfect for what I need to do.

Thanks.
 
D

DavidF

Here is one script that you could adapt. Insert via the insert html code
fragment tool:

----------

<Script language="JavaScript">
<!-- Script courtesy of http://www.web-source.net - Your Guide to
Professional Web Site Design and Development
function goto(form) { var index=form.select.selectedIndex
if (form.select.options[index].value != "0") {
location=form.select.options[index].value;}}
//-->
</SCRIPT>
<FORM NAME="form1">
<SELECT NAME="select" ONCHANGE="goto(this.form)" SIZE="1">
<OPTION VALUE="">-------Choose a Selection-------
<OPTION VALUE="index.htm">Home
<OPTION VALUE="web_development.htm">Web Development
<OPTION VALUE="html_codes.htm">HTML Tips
<OPTION VALUE="html_codes_chart.htm">HTML Code Chart
<OPTION VALUE="javascript_codes.htm">JavaScript Codes
<OPTION VALUE="216_color_chart.htm">Color Code Chart</SELECT>
</FORM>


----------

You will of course have to produce the pages on your site where you want to
take the viewer.

If this isn't exactly what you are looking for then Google for javascript
drop down boxes and try other scripts.

In the future, please post web related question in the web group:
microsoft.public.publisher.webdesign

DavidF
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top