U может иметь что-то подобное в js-файле .. var defaultProviders = {
google: {
name: 'Google',
url: 'https://www.google.com/accounts/o8/id',
hasLargeIcon: true
},
yahoo: {
name: 'Yahoo',
url: 'http://me.yahoo.com/',
hasLargeIcon: true
},
aol: {
name: 'AOL',
label: 'Enter your AOL screenname:',
url: 'http://openid.aol.com/{username}',
hasLargeIcon: true
},
myopenid: {
name: 'MyOpenID',
label: 'Enter your MyOpenID username:',
url: 'http://{username}.myopenid.com/',
hasLargeIcon: true
},
openid: {
name: 'OpenID',
url: 'http://',
hasLargeIcon: true
},
livejournal: {
name: 'LiveJournal',
label: 'Enter your Livejournal username:',
url: 'http://{username}.livejournal.com/',
hasLargeIcon: false
},
wordpress: {
name: 'Wordpress',
label: 'Enter your Wordpress.com username:',
url: 'http://{username}.wordpress.com/',
hasLargeIcon: false
},
blogger: {
name: 'Blogger',
label: 'Enter your Blogger account:',
url: 'http://{username}.blogspot.com/',
hasLargeIcon: false
},
verisign: {
name: 'Verisign',
label: 'Enter your Verisign username:',
url: 'http://{username}.pip.verisignlabs.com/',
hasLargeIcon: false
},
claimid: {
name: 'ClaimID',
label: 'Enter your ClaimID username:',
url: 'http://openid.claimid.com/{username}',
hasLargeIcon: false
},
clickpass: {
name: 'ClickPass',
label: 'Enter your ClickPass username:',
url: 'http://clickpass.com/public/{username}',
hasLargeIcon: false
}
};
Чем доступно username
, вы можете использовать следующий код для создания полного URL ... `function (event) {varотмена = правда;var val = $ ('input [type = text]', имя пользователя) .val ();if (val.length> 0) {var pvd = provider [selectedId];if (pvd) {_setLoading (true, true);var url = pvd.url.replace ('{username}', val);_setOpenIdUrl (URL);_setCookie (selectedId);alert ("URL is:" + url);
input.get () [0] .form.submit ();}} if (cancel) {event.preventDefault ();}
}; 'Это будет работать большую часть времени ....