The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
html help:)
ok well how would i make so when someone clicks a link that leads to a new window, that i can control its width
|
#2
|
||||
|
||||
to change the size of a window isn't doable with html alone iirc.
you have to use JavaScript for that, and so you'll get some which have disabled that |
#3
|
||||
|
||||
There are 2 ways of creating and dealing with popups gracefully:
Simple. Code:
a href="#" onclick="{mypopupcode}; return false" Slightly more complex. Code:
a href="mypopup.html" target="popup" onclick="if(mypopup(this.href,this.target,popupsettings)) return false" [If the above looks like a canned response, it's cos I had it written months ago and it's an aticle on an old website of mine...] So: if you create a javascript function to deal with your popups, have it return true if the popup works - that way you can determine if the javascript works and therefore return false to the regular browser behaviour and not load the link normally, but if the function refturns false, then your regular browser behaviour kicks in and your link still opens in a new window via the target="popup" HTML script. |
#4
|
||||
|
||||
would it work like this?:
HTML Code:
<a href="popup.html" target="popup" onclick="window.open('popup.html', 'popup', 'height=200,width=200')">blah</a> |
#5
|
|||
|
|||
looks right to me AN-net, though just throw it in a test page and test it out
|
#6
|
||||
|
||||
Quote:
HTML Code:
<a href="popup.html" target="popup" onclick="if(window.open(this.href, this.target, 'height=200,width=200')) return false">blah</a> |
#7
|
||||
|
||||
kool thanks alot
now i need another thing, how do i make an action in one window affect another, like vb's attachment system. when you upload something it updates the post window and with the uploaded attachments, how would i achieve this? |
#8
|
||||
|
||||
Far more complex: now you are talking about the DOM and parent / child relationships...
How much knowledge do you have on Javascript? |
#9
|
||||
|
||||
i would say fairly little....
|
#10
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|