/    Sign up×
Community /Pin to ProfileBookmark

close image onclick (nojava)

i was wondering how you would close an image in a popup OR if not in a popup simply make it disapear but clicking on it.

but no javascript

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@JPnycJul 16.2006 — I s'pose you could put the image in an iframe then link it to a blank page. It would "look" like the image closed, but it's a really convoluted and considerably less than desirable solution.
Copy linkTweet thisAlerts:
@gooncorpJul 16.2006 — [code=html]<img src="s.jpg" alt="" style="position: absolute; width: 500px; height: 500ps; display: block;" onclick="this.style.display = 'none'")
[/code]

Is that all right?
Copy linkTweet thisAlerts:
@JPnycJul 16.2006 — He said no javascript
Copy linkTweet thisAlerts:
@gooncorpJul 16.2006 — Yeah, but it works, and is probably the easiest way of doing it. It might be that he just doesn't want the <script> tags on the code.
Copy linkTweet thisAlerts:
@LowallynauthorJul 16.2006 — your not allowed to have javascript on myspace
×

Success!

Help @Lowallyn 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 5.19,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...