Jump to content
CristianRoflmao

Ajutor script site

Recommended Posts

Salut,am un script destul de lung si vreau in momentul in care se executa force login care are scriptul asta :

var forceLogin = function(){
largePlayBtn.onclick = function(){
window.location.href = 'https://link';
}
mainContentLink.onclick = function(){
window.location.href = 'https://link';
}

largePlayBtn.className = 'login';
largePlayBtn.style.height = '';
largePlayBtn.style.display = '';
largePlayBtn.style.cursor = 'pointer';
}

vreau sa execute asta

onClick="show_widget();" 

( e scriptul cand apesi pe ceva sa se lanseze widgetu)

sau complet cu text..

<a href="javascript:void(0)" onClick="show_widget();">Click Here To Launch Widget</a>

adica cand se laseaza force login sa bage direct widgetul ala.. care se executa prin : "show_widget();"

cum se face asta?

am incercat cu window.onload = "show_widget();" dar nu merge .. alte idei?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...