php forum
php mysql forum
php mysql smarty
 
Topic Options
#108460 - 06/10/01 05:18 PM a tip for all those who use javascript and layers (especially you matt jacob)
Bob Offline
Member / Eejit

Registered: 10/31/00
Posts: 273

   a tip for all those who use javascript and layers (especially you matt jacob) to Del.icio.us Add to del.icio.us
  Digg a tip for all those who use javascript and layers (especially you matt jacob) Digg it
***EDIT*** THE TUTORIAL CAN NOW BE FOUND HERE: http://www.iewfnet.com/tutorials/js_bug/

This is just a nice little tip I thought you would like smile

I am doing my best at explaining it quickly, but, will do a better tutorial later.


Okay, lets take matt's site as an example ( http://matt.h-realms.com ).

Now then, when you go to the site, the first piece of text you read is a warning not to hover the mouse over the little blue image furhter up the page.

Surprise Surprise, everyone hovers over the image and bang

...

the layers on the page get changed and you get a new layer down below saying 'didn't i warn you not to hover over the little blue button' and it offers you a link to return to
the 'original' oage (this basically switchers the layers again)

...

but, this also means you have to click on a link, and the link needs somewhere to go so most people use <a href="#" ... > but, this changes the url they are visiting to:
http://matt.h-realms.com/# which is fine

...

however, it also changes the title of the page (displayed in the browser title place thingy smile ) to http://matt.h-realms.com/# which makes your site lose some of its consistency

...

the solution to this is, instead of using <a href="#" ... > use <a href="javascript:;" ... > and this will change the layers etc etc and keep the original title in the title bar smile

a pretty small tip I know, but, all the same its useful smile

i am currently writing a better tutorial for this smile

<FONT COLOR="#000000" SIZE="1">[ June 10, 2001 06:31 PM: Message edited by: RobbieB ]</font>
_________________________
If I'm leavin' with a broken heart you're leavin' with a broken nose ... ~ Jettingham - Cheating

Top
#108461 - 06/10/01 06:35 PM Re: a tip for all those who use javascript and layers (especially you matt jacob)
Bob Offline
Member / Eejit

Registered: 10/31/00
Posts: 273
THE TUTORIAL CAN NOW BE FOUND HERE: http://www.iewfnet.com/tutorials/js_bug/
_________________________
If I'm leavin' with a broken heart you're leavin' with a broken nose ... ~ Jettingham - Cheating

Top
#108462 - 06/11/01 02:13 AM Re: a tip for all those who use javascript and layers (especially you matt jacob)
Matt Jacob Offline
Master Hacker

Registered: 09/13/00
Posts: 4389
Loc: Tucson, Arizona
what browser are you using? the title bar doesn't change under IE5.5-SP1. wink

Top
#108463 - 06/11/01 07:33 AM Re: a tip for all those who use javascript and layers (especially you matt jacob)
Bob Offline
Member / Eejit

Registered: 10/31/00
Posts: 273
bah to you!! well, it works for older browsers ... gottit!! tipsy
_________________________
If I'm leavin' with a broken heart you're leavin' with a broken nose ... ~ Jettingham - Cheating

Top


Who's Online
0 Registered (), 37 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by Ian_W
Yesterday at 03:47 PM
What do you use to edit the files
by Ian_W
Yesterday at 03:33 PM
BeyondCompare v3.00
by Ian_W
Yesterday at 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
Yesterday at 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3] Language file checker
by blaaskaak
09/09/08 12:56 AM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
ghengis317, NitroX, Dogan, EliYah-, W-D
13344 Registered Users
Top Posters Last 30 Days
AllenAyres 16
blaaskaak 13
FREAK1 7
Mike L_dup1 4
Chris Bale 4
Ian_W 4
tackaberry 3

 

 

 
fusionbb message board php hacks