Hi,
I want to know that how a moving link can be stopped whn the mouse over event occur.I want to perform it in dreamweaver.
Waiting for ur urgent reply.
Regards,
Hi,
I want to know that how a moving link can be stopped whn the mouse over event occur.I want to perform it in dreamweaver.
Waiting for ur urgent reply.
Regards,
Short summary and modern fix
wanted the moving link to stop when the mouse hovers. The marquee solution posted by does work in some browsers, but as noted the <marquee> element is obsolete and inconsistent across browsers (see the MDN note on <marquee>). A simple, standards-based alternative is CSS animation with animation-play-state set to paused on hover. That keeps the behavior (pause-on-hover) while remaining cross-browser friendly and easier to control.
Example (HTML + CSS — paste into Dreamweaver Code view and test in Live View):
<div class="scroll-wrap">
<div class="scroller"><a href="#">Example scrolling link</a></div>
</div>
<style>
.scroll-wrap { overflow: hidden; white-space: nowrap; }
.scroller { display: inline-block; padding-left: 100%; animation: scroll 10s linear infinite; }
.scroll-wrap:hover .scroller,
.scroll-wrap:focus-within .scroller { animation-play-state: paused; }
@keyframes scroll {
0% { transform: translateX(0); }
100% { transform: translateX(-100%); }
}
/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
.scroller { animation: none; }
}
</style> Notes and troubleshooting
padding-left and animation duration accordingly. requestAnimationFrame. Bottom line: the marquee quick-fix works (as showed) but migrating to CSS or JS is the recommended, future-proof approach (as suggested).
Jump to Post— Member #114696Like thi
<marquee onMouseOver="this.scrollAmount=0" onMouseOut="this.scrollAmount=10"><a href="#">Hello World</a></marquee>
Jump to Post— MidiMagic 579Marquee is a nonstandard IE extension that doesn't work in other browsers. It is deprecated.
Like thi
<marquee onMouseOver="this.scrollAmount=0" onMouseOut="this.scrollAmount=10"><a href="#">Hello World</a></marquee> Marquee is a nonstandard IE extension that doesn't work in other browsers. It is deprecated.
Marquee is a nonstandard IE extension that doesn't work in other browsers. It is deprecated.
then wht to use instead marque??
Like thi
<marquee onMouseOver="this.scrollAmount=0" onMouseOut="this.scrollAmount=10"><a href="#">Hello World</a></marquee>
Thankx for ur guidence.its resolved
then wht to use instead marque??
There is no standard html for that. You have to use a script.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.