Aller au contenu
View in the app

A better way to browse. Learn more.

Next

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.

Fonctions incompatibles ?

Featured Replies

Posté(e)

Salut !

Pourriez-vous me dire pourquoi, quand je desinhibe verti_scroller(), tableau_colorer() ne fonctionne plus ?

<style type="text/css">
#verti_div
{
position:absolute;
width :100%;
height:265%;
}
h1
{
margin-top:15%;
line-height:125%;
margin-left:0;
font-size:211%;
text-align:center;
}
</style>

<div id="verti_div">
<h1 style="margin-top: 38%">Dominique Braschi-Blondeau<br>présente</h1>
<h1>une production de</h1>
<h1>Cosmic Village Productions</h1>
<h1>réalisée par</h1>
<h1>Stéphane Lembaumeur</h1>
</div>

<script type="text/JavaScript">

function verti_scroller()
{
incrementeur-=pas
document.getElementById('verti_div').style.top=incrementeur
if(incrementeur>-1.5*window.innerHeight)
setTimeout('verti_scroller()', laps)
else
alert(document.getElementById('verti_div').style.top)
}

function tableau_colorer()
{
if(t_colorer=='ok')
{
element_no=0
elements_nombre=tableau.length
while(element_no<elements_nombre)
{
element=tableau[element_no]
position=element.offsetTop-document.body.scrollTop

if( 0 < position && position < window.innerHeight / 2 )
taux = position / ( window.innerHeight / 2 )

else if( window.innerHeight / 2 <= position &&  position < window.innerHeight )
taux = ( window.innerHeight - ( position * 1.1 ) ) / ( window.innerHeight / 2 )

else
taux = 0

delta_r = parseInt(coul_bord.slice(1, 3), 16) - parseInt(coul_mil.slice(1, 3), 16)
delta_v = parseInt(coul_bord.slice(3, 5), 16) - parseInt(coul_mil.slice(3, 5), 16)
delta_b = parseInt(coul_bord.slice(5, 7), 16) - parseInt(coul_mil.slice(5, 7), 16)

r_cour = parseInt( parseInt(coul_bord.slice(1, 3), 16) - ( taux * delta_r ) )
v_cour = parseInt( parseInt(coul_bord.slice(3, 5), 16) - ( taux * delta_v ) )
b_cour = parseInt( parseInt(coul_bord.slice(5, 7), 16) - ( taux * delta_b ) )

color_display(element)
element_no++
}
setTimeout('tableau_colorer()', 100)
}
}

function color_display(objet) { objet.style.color = 'rgb(' + r_cour + ',' + v_cour + ',' + b_cour + ')' }

//incrementeur=0; pas=2; laps=1; verti_scroller();

coul_bord=document.bgColor; coul_mil=document.fgColor; t_colorer='ok';
tableau=document.getElementsByTagName('h1'); tableau_colorer()

</script>

Merci de votre aide !

Posté(e)

qu'etends-tu par ne fonctionnent plus ?

elles fonctionnaient avant ?

prends un débogueur JS type Firefox :)

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

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.