PDA

View Full Version : Xanthe can you help with select boxes


Roger Sherwin
21.06.2001, 20:45
Hi

I am using the page scroll text script in my page and have come up with a problem.

I have a page at http://www.beacon77.freeserve.co.uk/spider/usaclubs.htm whick I have been working on

The script works perfectly as it was - loading external pages from the five links

what I need to do is change the links for a select drop down box and can't get it to work calling a function

the link is Alaska (#)

when I use <option value="javascript:frame.loadpage('clubfiles/usaclubs/alaska.htm'); return false">Alaska
I get an error message "return outside of function"
Could you please advise of the correct syntax to use if it is possible to use this script in this way

Thanks in advance


Roger Sherwin
URL=http://corvette-online.net
Mail=roger@beacon77.freeserve.co.uk

jc
21.06.2001, 21:46
just noted 2 thing

1-
value="alaska.htm<font color=red>'</font id=red>">Alaska
that make load the page: alaska.htm'

2-
value="javascript:frame.loadpage('clubfiles/usaclubs/alabama.htm'); return false">Alabama

only function can return somethig

jc
21.06.2001, 21:48
so you will need something like...

function makeload(src){
frame.loadpage(src)
return false
}