No marquee tag in the HTML markup

For the experienced web developer the marquee tag is a non-standard HTML markup element type which causes text to scroll up, down, left or right. The tag was first introduced in early versions of Microsoft's Internet Explorer and was compared to Netscape's blink element, as a proprietary non-standard extension to the HTML standard with usability problems.

Because text within a marquee is not always visible, it violates the basic nature of web pages, which are eminently skimmable. Users typically glance over a page and decide what, if anything, to read (using headlines, bold text, bullets, etc.), but marquees, like the blink element, hide text at certain points, meaning at any given time, scanning the page may fail (or take longer).

Links within marquees are notoriously difficult to click, and users only get one chance every time it scrolls past. This can easily annoy users.

Well, there are solutions to this and I want to present you one of them. You only need CSS and having javascript enabled.

just some text...

You can continue adding text and images, but remember not to change „overflow: hidden;” in the „no_marquee” div. That's important.

 Second thing you need is a javascript function you must add in the head element of the webpage.

function moving_div_up(value)

{

value--;

if (value<-10300) value = 0;

document.getElementById('moving_div').style.top = value+'px';

setTimeout("moving_div_up("+value+")", 20);

}

That will scroll the text and the images from the „moving_div” from bottom to the top. The speed of the scroll can be changed by modifing the value „20” inside the „setTimeout” with any value you desire.

To scroll the text and the images down you only need to change the decrease of the value and to add it up. Something like this:

function moving_div_down(value)

{

value++;

if (value>10300) value = 0;

document.getElementById('moving_div').style.top = value+'px';

setTimeout("moving_div_down("+value+")", 20);

}

You can scroll the content to the left or to the right. It's simple. Very simple.

function moving_div_left(value)

{

value--;

if (value<-10300) value = 0;

document.getElementById('moving_div').style.left = value+'px';

setTimeout("moving_div_down("+value+")", 20);

}

function moving_div_right(value)

{

value++;

if (value>10300) value = 0;

document.getElementById('moving_div').style.left = value+'px';

setTimeout("moving_div_down("+value+")", 20);

}

The last thing for this to work is adding the „onLoad” attribute.

Related Articles

seo search engine optimisation The search engine optimisation part is very important for websites - they have to match certain criteria in order to appear as often as possible in the search results on Google and Bing. SEO (search engine optimization) starts from site / online store / platform development because it involves a specific structure of the pages, it involves an ease to browse for the visitors (for your clients) and it involves quicky loading when accessed. Our sites are delived already optimized, but if you have already a solution developed by someone else we analize your website and we offer consultancy - we'll tell you about the options you have about to boost its visibility and organic traffic.

realizăm site-uriWe develop websites to present your activity to the world and applications for internet that help you organize your activity as eficient as possible and without loses (in money, time and energy) wherever you are. Do you need an online store or a tool available for you anytime? We can develop that as long you reserve a domain name and some hosting space, the app is our job.

As an extension to your site or web app we can provide an app for your smartpone / table to keep you always informed about what's happening with the product already developed.

developing appsWe develop web applications and mobile apps (Android) for various companies and organisations according to their specifications and requirements. The apps are being used by employees and partners to work more efficient and with less costs for the company: the web applications can be accessed through the browsers installed on smartphones and tablets but the usage of a complementary mobile app can make efficiency to go up (it can increase the communication between people or it can show things not so important on PC).

We offer support for the applications used now and we develop them further using modern technologies.

Consulting bussiness online / itWe offer consultancy about the informatic system you have installed and we offer sollutions to make the more efficient, to improve and develop them further, we analize the activities inside your company and / organisation and we offer sollutions for the projects you want to develop.

If you don't have a website, an online store, a web application or a mobile app (Android) but you want to develop one for yourself or your company we offer the initial consultancy, the one that's necessary before starting anything about such project.

Share this URL on social social

"Cu capãtul arcurilor, trecînd,
rãzboinicii
mîngîie roua..."

Yosa Buson (1715-1783)

facebook sharing button
twitter sharing button
messenger sharing button
reddit sharing button
wordpress sharing button
whatsapp sharing button
tumblr sharing button
pinterest sharing button
blogger sharing button