Scripting: film-strip navigation

started by Jm25 on Nov 16, 2004 — RSS Feed

Jm25 Jm25
Posts: 5

Hi,
I'm trying to implement the composite film-strip rollover using the Stonehenge example from the November 2004 newsletter and I am adapting it to my own situation. However I am fairly new to javascript and have no idea how to convert function nothing() to the link that I would like http://www.mydomain.com/.

Could someone assist me here?

<SCRIPT language=javascript type=text/javascript>
<!--

function nothing()
     {
     //dummy function providing a dead link
     }
     
     
     
function fsButton(n,y)
     {
     if (document.getElementById)
                 {
                 var button = document.getElementById("shb"+n);
                 button.style.backgroundPosition="0px "+y+"px";
                 }
     }
     
function doBlur(n)
     {
     if (navigator.userAgent.indexOf("MSIE"!=-1)
           {
           n.blur();
           }
     }
     

Joe Gillespie Joe Gillespie
Posts: 528

Function nothing() is not needed on a real page. It is there because I don't want to put real links to other pages in my tutorial. Some people put <a href="#">, which is similar, but takes the reader to the top of the current page, which is undesirable.

All you have to do is replace <a href="javascript:nothing()"> in the HTML where the buttons are, with real links. You don't need to change the JavaScript at all - unless you want to remove the function nothing() completely to lighten the page slightly.

Jm25 Jm25
Posts: 5

yeah thanks, I did just that but wasn't sure about the javascript do nothing. thanks for the quick reply

Jm25 Jm25
Posts: 5

I have completed a set of  film strip buttons and they look great.

(see them at http://www.abbetoys.com.au).

I have noticed one strange thing happening though  that is a little disconcerting. Sometimes as the mouse moves over the buttons they disappear briefly and just as magically reappear before becoming clickable links.

Am I missing something here?

Joe Gillespie Joe Gillespie
Posts: 528

I can't replicate this here in any browser on Mac or PC. They all look fine to me.

Johnb Johnb
Posts: 4

They disappear for me too in IE v 6.  If you move your mouse quickly, you can get them all to disappear! Very strange!

Joe Gillespie Joe Gillespie
Posts: 528

My IE 6 is running under XP Pro on a three year old PC with an AMD 2000+ processor with a cheap video card. Works perfectly for me there. There must be some other factor causing this but without a fine comparison of hardware, software and add-ons, I don't know what to suggest.

Jm25 Jm25
Posts: 5

Thank you for your input. It will remain a mystery a little longer. It has been such a pleasure to discover this forum and the wonderful newsletters.

I am saddened to hear it must come to a close, but well done and congratulations for leaving such a brilliant legacy. A real inspiration for younger ones coming on. I will continue to explore the earlier newsletters for as long as they remain online. thankyou once again.

jm25

Tsmessi Do Tsmessi Do
Posts: 1


This is an interesting discussion. thank you for sharing

[url=http://simulationpretpersonnel.com][color=#FFFFFF][u]pret personnel en ligne[/u][/color][/url][color=#FFFFFF] - Pret personnel en ligne et de comparer les meilleurs taux afin de... La demande de prĂȘt personnel en ligne[/color]

Krystine Tawnie Krystine Tawnie
Posts: 28

Military spending is socialism and the first two paragraphs of Common Sense balance the paradox best. To even consider a bail-out was the socialistic "hat-trick" that had to have been planned for more than eight years to be so well timed. The Supreme Court could balance their responsibility by defining Bush administrative results as a "coup d'etat" there is no capitalism without capital.


Search engine marketing company in India

Maskodok Eko Maskodok Eko
Posts: 170

TOP SEO | Jasa SEO Profesional

TOP SEO | Jasa SEO Profesional RajaPoker88.com Agen Texas Poker Dan Domino Online Indonesia Terpercaya IDRPoker.COM Agen Texas Poker dan Domino Online Indonesia Terpercaya POKERSTAR88.com Agen Texas Poker Dan Domino Online Indonesia Terpercaya D

You must login to reply