Webmaster Forum Rules | Posting Guide | Contact Us | Testimonials | Contributing Geek Program | Advertise on Geek/Talk
Welcome to the GeekTalk Webmaster Discussion Forums from GeekVillage.com

Click Here To Register. It's Free!

Go Back   geek/talk: Signature-free discourse for serious web publishers > YOUR CREATION: Building & Maintaining A Web Site > Web Design and Webmaster Issues
User Name
Password
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 05-17-2001, 05:07 PM   #1
1lit
Registered User
 
1lit's Avatar
 
Join Date: Nov 2000
Location: London
Posts: 282
Question Javascript over different websites/URLs?

Because of the way my webhosting account is set-up, the Javascript bookmark command doesn't work.

See the bookmark button half-way down: http://www.UKHotMovies.com/welcome.shtml

It's because http://www.UKHotMovies.com is hosted at http://64.176.72.84/bla (in the sub-directory of another URL, Litmania.com)

I realise this is for security reasons.

Is there any way around this, so that I can utilise a script that will bookmark (or pop-up a window) with this set-up?

The scripts work on my other sites, but fail to do so on this one, because Javascript doesn't work over different domains.

Can anyone help please?

Thank you http://geekvillage.com/ubb/smile.gif

------------------
Nadeem Azam
Litmania.com Inc.

Free Banners - free website promotion
Web Banners - award-winning 1:1 banner exchange
1lit is offline   Reply With Quote
Old 05-18-2001, 05:35 AM   #2
Cat
Registered User
 
Cat's Avatar
 
Join Date: Mar 2001
Location: Canada
Posts: 15
Unhappy

Try this where you want your bookmark me link:

Code:
<script language="JavaScript">
<!--
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) { 
var url="http://www.ukhotmovies.com/welcome.shtml"; 
var title="UKHotMovies";
document.write('<a href="javascript:window.external.AddFavorite(url,title);" '); 
document.write('onMouseOver=" window.status='); 
document.write("'Click here to add us to your favorites'; return true "); 
document.write('"><img alt=\"Press CTRL and D to bookmark this site!\" src=\"bookmark.gif\" border=1 height=48 width=95>'); 
** 
else { 
var msg = "bookmark us"; 
if(navigator.appName == "Netscape") msg += " (press CTRL and D), and"; 
document.write(msg); 
** 
//-->
</script>



[This message has been edited by Cat (edited 05-18-2001).]
Cat is offline   Reply With Quote
Old 05-20-2001, 04:04 PM   #3
1lit
Registered User
 
1lit's Avatar
 
Join Date: Nov 2000
Location: London
Posts: 282
Unhappy

Thank you VERY much, Cat, that was a noble effort.

I tried it, but it doesn't even display the bookmark graphic, never mind allow people to bookmark the site.

Tested it in both IE6 and N5.

I appreciate your kind help nevertheless.

Best wishes http://geekvillage.com/ubb/smile.gif

------------------
Nadeem Azam
Litmania.com Inc.

Free Banners - free website promotion
Web Banners - award-winning 1:1 banner exchange
1lit is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript help needed coolshop Web Development - Programming / Coding 4 11-21-2001 02:01 PM
javascript popup error with AOL - PLEASE HELP theDirtiest Web Development - Programming / Coding 3 10-06-2001 08:19 AM
Javascript within Javascript ???? 1lit Web Design and Webmaster Issues 0 11-26-2000 04:19 PM
Javascript Website Waldo000000 Web Design and Webmaster Issues 3 04-22-2000 06:10 AM
Any good photo rotation javascript? notibrian Making Money with CPC and/or CPM Programs 1 11-13-1999 11:34 AM

Please support our advertisers. They ensure our survival.

All times are GMT -5. The time now is 10:26 AM.


GeekVillage.com is copyright © 1998-2015 Curiosity Cave - Science gifts for clever kids. All rights reserved.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.