WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You

WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1Accespted PopUp without opening new window Wed Jun 16, 2010 10:35 pm

Unknown Data

Unknown Data
Registered Member
Registered Member
PopUp without opening new window
PopUP box withot opening a new window


Here I will learn you, how to make a PopUp without opening a new window.
It's quiet simple, just follow the steps.

1. Step - Open PopUp
For the first, you'll have to make a link to open the PopUp, but it's now a normal link. Some small attributes are added.
<a onmouseover='this.style.cursor="pointer" ' onfocus='this.blur();' onclick="document.getElementById('The PopUp have to got a ID, it could be fx "1"').style.display = 'block' " >Name of the PopUp link</a>
2. Step - Design
At this step we now have to make the PopUp, it look like this.
<div id='The same ID you used in Open PopUp-step' style='display: none; position: absolute;>Here you put normal tags, text, effects in - like you would design a normal page (body)</div>
We aren't done yet, there are som small attributes you have to put in the 'div' tag. I've just posted the code without the attributes source, then you you to redirect the red stroke. You don't have to use all the attributes!
<div id='' style='display: none; position: absolute; left: -px; top: -px; border: -px; padding: -px; background-color: -; text-align: -; font-size: -px; width: -px;' ></div>
All right now we just need to know what all this means. More can be added, it's up to you.
AttributeExampleWhat do we get?
left:280How many pixelse from the left, the PopUp would be placed
top:150How many pixelse from the top, the PopUp would be placed
border:solid black 1Like in a table, frame color and size
padding:10The padding for the PopUp
background-color:whiteThe background color
text-align:justifyWhich text type
font-size:10The size of the text
width:1000The width of the PopUp
We also have to close the PopUp, so place this code inside the PopUp body.
<a onmouseover='this.style.cursor="pointer" onfocus='this.blur();' onclick="document.getElementById('The ID you used at the Open PopUp-step').style.display = 'none' " >Close</a></div>
So we got it all, now you should cud make a PopUp without opening a new window.


Click here to se the demo
Notice : This tutorial is copyrighted by WebArtz Forum. You may not publish it on anywhere without written permission from the administrators.



Last edited by Unknown Data on Fri Jun 25, 2010 3:55 pm; edited 2 times in total

http://woops.dk

2Accespted Re: PopUp without opening new window Thu Jun 17, 2010 6:50 am

Russel

Russel
Moderator
Moderator
Nice tutorial Unknown Data but it is better if you will provide demo Smile

https://www.twitter.com/russeltubo

3Accespted Re: PopUp without opening new window Thu Jun 17, 2010 7:17 pm

Unknown Data

Unknown Data
Registered Member
Registered Member
Thank you!
So I've added a demo. (:

http://woops.dk

4Accespted Re: PopUp without opening new window Thu Jun 17, 2010 7:22 pm

Russel

Russel
Moderator
Moderator
Nice one bro. Keep up the good work

https://www.twitter.com/russeltubo

5Accespted Re: PopUp without opening new window Fri Jun 18, 2010 2:41 pm

iJerick

iJerick
Registered Member
Registered Member
I think it's a toggle! Smile

Anyway, Nice tutorial!: )

6Accespted Re: PopUp without opening new window Fri Jun 18, 2010 3:17 pm

ankillien

ankillien
Administrator
Administrator
Nice tutorial and very well explained Very Happy

Tutorial Accepted

7Accespted Re: PopUp without opening new window Fri Jun 18, 2010 11:18 pm

Fred100

Fred100
Registered Member
Registered Member
Wow , that tutorial was sure pretty good and really awesome Wink
Well , if I ain't wrong then once I had to do a urgent shut down of my PC , and I had a pop up on , and when I opened my firefox , it showed me the "Restore tabs" option , and there I noticed this pop up thingy which was sort of like =popup? , or ;popup=? , i'm not sure , it was weeks ago , lol
and awesome work with the tutorial Wink

http://www.art-castle.biz/forum.htm

8Accespted Re: PopUp without opening new window Fri Jun 18, 2010 11:42 pm

Joel

Joel
Registered Member
Registered Member
wow! I'm impressed!

http://www.advertisehotspot.info/

9Accespted Re: PopUp without opening new window Tue Jun 22, 2010 2:36 pm

Russel

Russel
Moderator
Moderator
Alright. Great Tutorial dude. XD

https://www.twitter.com/russeltubo

10Accespted Re: PopUp without opening new window Fri Jun 25, 2010 3:39 am

Krazy


Registered Member
Registered Member
Nice tutorial, I just suggest getting better grammar.

11Accespted Re: PopUp without opening new window Thu Aug 26, 2010 7:12 pm

Pinks


Registered Member
Registered Member
nice thank you Smile

12Accespted Re: PopUp without opening new window Fri Aug 27, 2010 12:20 pm

Joel

Joel
Registered Member
Registered Member
Yep, a great tutorial as i said earlier on. This will come in handy for my forum some time soon Very Happy

http://www.advertisehotspot.info/

13Accespted Re: PopUp without opening new window Fri Nov 05, 2010 2:08 am

makigo


Registered Member
Registered Member
Nice tutorial.Can we use this window over iframe?

14Accespted Re: PopUp without opening new window Fri Nov 05, 2010 2:11 am

makigo


Registered Member
Registered Member
Is it possible to use your popup window over iframe?

15Accespted Re: PopUp without opening new window Fri Nov 05, 2010 2:11 am

Unknown Data

Unknown Data
Registered Member
Registered Member
Yes. Wink

http://woops.dk

16Accespted Re: PopUp without opening new window Tue Nov 09, 2010 1:00 am

sean

sean
Registered Member
Registered Member
not bad good tutorial Popcorn

http://www.witalent.net

17Accespted Re: PopUp without opening new window Wed Mar 09, 2011 6:30 pm

razvy3


Registered Member
Registered Member
Where is the demo ?

18Accespted Re: PopUp without opening new window Thu Apr 21, 2011 8:43 pm

jckjones29


Registered Member
Registered Member
Hi,
I have one code you can put this code in your button .
<mx:Button
click="openNewWindow(event, 'http://www.google.com/', 'candiespop', 400, 200, 1, 1, 1, 1, 1, 1, 1);"
id="test link"
useHandCursor="true"
buttonMode="true"
mouseChildren="false" />

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum