If you are reading this, please get modern browser.
skip to main content | skip to main navigation | skip to secondary content

Smart ‘back to top’ link

~ 22nd May 2006. · 13:55 CET · permanent link · printer friendly ~

Back to top link’s purpose is to quickly position the viewport back to a beginning of a web page. Sometimes you have a variable height of the content and this link is unnecessary if a particular page is shorter than viewport height. With this simple JavaScript, you can hide it depending on page’s height. See the example web site.

var d = document;
onload = function() {
    var viewport_height = (self.innerHeight) ? self.innerHeight : (document.documentElement && document.documentElement.clientHeight) ? document.documentElement.clientHeight : (document.body) ? document.body.clientHeight : 0;
    var page_height = d.getElementsByTagName('body')[0].offsetHeight;
    var ttl = d.getElementById('to_top_link');
    if (page_height < viewport_height) ttl.style.visibility = 'hidden';
};

Hellgate: London

~ 10th May 2006. · 10:57 CET · permanent link · printer friendly ~

Hellgate: London screen shot

The brand new web standards compliant (and what not) official web site for the über Action/RPG PC game Hellgate: London is out of the web.burza’s dungeons.

The site introduces many cool features, both content-wise and technically. For the later, feel free to take a look at the source. Yes, the questions about the client-side methods will be answered.

Design is by emptyhead, interface elements by pho. We did try several scenarios, hopefully the site is usable on most of the platform/OS combinations. Tell me how you like it and report issues, if any.

Microsoft, ActiveX and noscript

~ 8th May 2006. · 21:27 CET · permanent link · printer friendly ~

Microsoft did it again and now it affected much broader user-base. The funny thing is – I remember Flash fans used to say that Flash is a kind of interface that will run equally on each platform/browser. Sweet…

Since April 11th, all IE 6 patches (and IE 7 betas for that matter) deployed this ActiveX… thing. Read more about it at Adobe/Macromedia, it’s too ugly to write about it here. What bothers me is that it affects my favorite Flash embedding method. Well, I guess, without this occassional crap – the life would be boring and I would be probably enjoying a cup of coffee somewhere in the down-town.

Whichever method you choose to fix this, one thing is certain – you’ll have to do it with JavaScript. Continue reading ›

* Please keep in mind that this is a personal web site and it does not reflect the position or opinion of my respective employers, organizations or partners.

Typetester – compare screen type Supported by Veer.

What is this?

A web log of Marko Dugonjić, web professional from Croatia. Topics covered:

Translate this site

German, Spanish, Italian, French or Japanese (via).

See you there!

Feel like buying a book?

Try with maratz.com aStore

Worth visiting

top of the page | skip to main content | skip to main navigation | skip to secondary content