/    Sign up×
Community /Pin to ProfileBookmark

Important | Help Me Please

hi dear:
i have a request/question from you. i have 3 java script source code. but i want convert this source to
a .js file, but i can not now if you can change 3 in 1 please reply to me .js source code, thank you
(i want make a .js file from this source`s!)

1:add to favorite:
—————-

<script language=”JavaScript1.2″>
var bookmarkurl=”http://www.yoursite.com/
var bookmarktitle=”Your Title!”

function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
</script>
<script>
if (document.all)
document.write(‘<a href=”javascript:addbookmark()”>’)
</script>

2:make your home page:
——————–

<A title=”” onclick=”this.style.behavior=’url(#default#homepage)’;this.setHomePage(‘http://www.yoursite.com‘);
“href=”javascript:makehomepage”>

3:open pop-up:
————

<SCRIPT LANGUAGE=”JavaScript”>

function popUp(URL) {
day = new Date();
id = day.getTime();
eval(“page” + id + ” = window.open(URL, ‘” + id + “‘, ‘toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=230’);”);
}
</script>

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@JPnycOct 13.2004 — Just take out all the script tags, put em in a .js file, and link the file to the page(s) that will call the functions.
×

Success!

Help @alisalimi_ir spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...