Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to force a script to run in chrome

Featured Replies

Hi Guys,

 

I've used a simple marque code to get a slider running from right to left on a website.

 

It works fine in FF and IE, but not in Chrome.

 

I did find the following webkit code that works in chrome, but how can I force the script to run in chrome, while disabling the marque code when in chrome - is this even possible or is there a better 1 script fits all, lol, if only :)

 

<!-- Works in IE and FF -->
	<div id="container" class="clearfix">
	<marquee behavior="scroll" direction="left" scrollamount="4" style="padding-bottom:2px; width: 960px; height: 102px; background-color: #ffffff; overflow: auto;">Tesssssssssssstinnnnnnnnnnng</marquee>

<-- Works in chrome but not IE and FF -->	

	<style type='text/css'>
@-webkit-keyframes "slide" {
0% {left: 0%;-webkit-animation-timing-function: ease-in-out;}
100% {left: 90%;-webkit-animation-timing-function: linear;}
}

.slider{
position:absolute;
width:960px;
-webkit-animation-name: slide;
-webkit-animation-duration: 6s;
-webkit-animation-iteration-count: infinite; 
-webkit-animation-direction: alternate;
left: 0%;
}
</style>
<div class='slider'>Tessssssssssstingggggggggg</div>

Edited by Renaissance-Design
[quote] is for quotes. [code] is for code

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.