/    Sign up×
Community /Pin to ProfileBookmark

Always on Top Floating Layer Pop-up

Hi… I’m new. I found a great javascript written bySandeep Gangadharan that is [I]almost[/I] what I need. See attached.
What I’m trying to do is have a thumbnail open a pop-up when the mouse
is clicked on the thumbnail, and the pop-up that opens is another html
that will stay on the top no matter what until it is closed by using the
x close. I worked out the thumbnail image replacing the button which
brings up the pop-up, by changing the html line that read –
<form>
<input type=”button” value=”Open pop-up” onClick=”showIt()”>
</form>

to
<input type=”image” src=”mypic.jpg” height=”50″ width=”50″ onMouseDown=”showIt(‘mypic.html’)”>

What I want to do is replace the text file that comes up as always
on top with the html file I show in onMouseDown. So that the
html sub window always stays on top and always stays open until
closed with the X button in the sub window just as the text file
now does. Hope this is clear…

Thanks anyway..

[upl-file uuid=ded6b31b-aaa7-453b-aeac-b75fa9791739 size=3kB]AlwaysOnTop.txt[/upl-file]

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

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