/    Sign up×
Community /Pin to ProfileBookmark

simplest jsp

Dear all,

I have built a simple html website for a friends band and have created some simple things on the gallery page.
I have created an onClick=”window.open(‘….. to open and image to an enlargened version. This works perfectly offline on my computer, and online on others. However, when I view what I have created Online, it doesn’t work. It just appears as an image, and has the usual image options on right click.

Due to the fact I always test offline and online, I would be interested to know why it doesn’t work online.

The code is:
<a onClick=”window.open(‘../images/jpg/gigs/060804_fm/03.jpg’,’1′,’width=380,height=400,menubar=no,scrollbars=yes’);”><img src=”../images/jpg/gigs/060804_fm/thumbnails/03.jpg” alt=”click pic” width=”73″ height=”55″ border=”0″></a>

thanks for any help, much appreciated,

atocp

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@CharlesAug 18.2004 — I would need the URL of the page to tel what's going on, but you've got two bigger problems there.

1) People without JavaScript will not be able to see the picture.

2) You are misusing the "alt" attribute. It's there to provide alternative content on browsers that don't display images.

[font=monospace]<a href="../images/jpg/gigs/060804_fm/03. jpg" onclick="window.open(this.href, 'child', 'width=380,height=400,scrollbars'); return false"><img src="../images/jpg/gigs/060804_fm/thumbnails/03.jpg" alt="[Wiggy and the rest of the old band]" width="73" height="55" border="0"></a>[/font]
Copy linkTweet thisAlerts:
@atocpauthorAug 18.2004 — Here is the link,

[URL=http://www.geocities.com/arebelsguide/pages/060804_fm.html]http://www.geocities.com/arebelsguide/pages/060804_fm.html[/URL]



Is the 'child' attribute just the name of the window in case you need to refer to it later?



Thanks for the help. It seemed to work better offline, still to upload the changes to check it out online

Thanks,

atocp
Copy linkTweet thisAlerts:
@atocpauthorAug 18.2004 — I have uploaded the new pages to the same location as the link above...however the same problem is occuring. apart from getting a little hand, and some description of the picture, it still doesn't work online. My friends, who the site is about have tested it and it works on their computers, so why wont something like that work on mine online when it works fine offline?

Im using the latest of pretty much everything so i don't see why it refuses to work.

Thanks for the help,

atocp
Copy linkTweet thisAlerts:
@CharlesAug 18.2004 — Did you try clearing the cache?
×

Success!

Help @atocp 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,
)...