glent Posted July 28, 2005 Posted July 28, 2005 on my Unnatended DVD I have inlcuded 6 or so shellpacks (xpize,crystalXP etc). in the description box I would like to have a clickable link to a screenshot (in the wpifolder). I dont want to place the cursor over the description and then an image to pop up that would be messy , I want to click a link and have my image pop up with the ability to close it when needed.I may use a single Jpg or a animated gif.any ideas would be appreciated
Lost Soul Posted July 28, 2005 Posted July 28, 2005 on my Unnatended DVD I have inlcuded 6 or so shellpacks (xpize,crystalXP etc). in the description box I would like to have a clickable link to a screenshot (in the wpifolder). I dont want to place the cursor over the description and then an image to pop up that would be messy , I want to click a link and have my image pop up with the ability to close it when needed.I may use a single Jpg or a animated gif.any ideas would be appreciated<{POST_SNAPBACK}>hmmm glent im not sureat first i was thinking of maybe a line like this desc[pn]=['<a href=window.open("./graphics/5carddeluxe.jpg","_blank","scrollbars=no,width=420,height=620");">click</a>]but then i realised you couldnt click on it because it was a onmouse over effect so the link wouldnt stay stillthen i was thinking of using a line like this in the desc line<a href="blabla.htm" onclick="NewWindow(this.href,'name','640','200','no');return false;"><img src="images/blabla.gif" alt="blabla" width="85" height="45" border="0"></a>both of these methods would work but the problem is they wont work with in a popup box because the box wont stay still for youand probably incorporating some thing to click the name of the prog would conflick with the javascripting of the check boxes,,hmmm im thinking maybe if you could make a link next to thhe progsay X = link sdhowing ex...... winrar x just a thought but thats probably the only way youll get the feature you want is by generating a new link beside the name of the program..ill play around with it some more and see if some thing good will come up but as for right now i have no ways of doing it and it definatly wont work with a onmouse over trick
blinkdt Posted July 28, 2005 Posted July 28, 2005 but then i realised you couldnt click on it because it was a onmouse over effect so the link wouldnt stay still@Lost Soul: I suspect there is a way to keep that popup in place. There's a great Javascript feature called overLIB you may be familiar with, and maybe that code can be adapted for WPI. I know the current WPI code behaves a lot like overLIB, for example, you can adjust the code to move the tip box further from the pointer. My pointer is large and invariably covers part of the tip box title, so I moved it about 25 pixels away from the application description (I think the default is 10 pixels, too close for my tastes). The overLIB code lets the box disappear on mouseout, or close with a click to a small "x" that appears in the right margin of the title. If the box can be made static, then your link feature would fly, Lost Soul.@Glent: Before Lost Soul does all the work , any interest?
Lost Soul Posted July 28, 2005 Posted July 28, 2005 but then i realised you couldnt click on it because it was a onmouse over effect so the link wouldnt stay still@Lost Soul: I suspect there is a way to keep that popup in place. There's a great Javascript feature called overLIB you may be familiar with, and maybe that code can be adapted for WPI. I know the current WPI code behaves a lot like overLIB, for example, you can adjust the code to move the tip box further from the pointer. My pointer is large and invariably covers part of the tip box title, so I moved it about 25 pixels away from the application description (I think the default is 10 pixels, too close for my tastes). The overLIB code lets the box disappear on mouseout, or close with a click to a small "x" that appears in the right margin of the title. If the box can be made static, then your link feature would fly, Lost Soul.@Glent: Before Lost Soul does all the work , any interest?<{POST_SNAPBACK}>hmmm the overLIB gr8 ideal blinkdt that would work great in conjucntion with the script i previously wrotebut glent is that what you really want or are you thinking of some thing different ?
glent Posted August 2, 2005 Author Posted August 2, 2005 Hate to bump my own thread, I know you gusy are very busy with Wpi @ the moment. Any ideas for this?Im looking at http://www.msfn.org/board/index.php?act=At...pe=post&id=7449 and wondering if theres a way to edit it for my needs
Lost Soul Posted August 2, 2005 Posted August 2, 2005 as of right now i really havnt had much time to work on this project im sorry, the problems im having is trying to integrate the overLIB tech, and thats some job do to having to rewrite half the javascript to do it.you could just add a button some where for the time being and make a popup like that screen you just posted and edit it to show what you wantonce again sorry i couldnt spend more time on this for you
blinkdt Posted August 11, 2005 Posted August 11, 2005 (edited) glent, just stumbled upon a solution while responding to a request by almulder, the solution was there all the time. Look for line 52 (or there abouts) of the (correction)>"useroptions.js" file found in the (correction)>"Wpiscripts" directory and adjust your tooltip attributes to produce a "sticky," a popup window that stays in place so that you can click hyperlinks placed in the description:Style[0]=["white","black","#18339F","#ffffff","","","","","","","","sticky","","",200,"",2,2,10,20,51,1,0,"",""]When including hyperlinks in your description, be certain to use the target="_blank" attribute or your new window will replace the WPI interface, making it impossible to return to the app! For example:pn=14prog[pn]=['Rocket Launcher']uid[pn]=['SOD']deps[pn]=['DTclean','QLTB']desc[pn]=['<center><img src="./icons/RKLauncher.png" width="64" height="128"><br>Convenient and fun way to organize your Desktop icons. Learn more about the Rocket\'s features <a href="http://home.cogeco.ca/%7Eraduking/" target="_blank">Here</a>.</center>']cmd1[pn]=['%cdrom%\\Programs\\Rocket.exe']rega[pn]=['REGEDIT /s %cdrom%\\Programs\\Cleanup\\Desktop.reg']dflt[pn]=['yes']forc[pn]=['false']cat[pn]=['Accessories']ordr[pn]=[140]pn++Produces this:Hope this helps.Edit: Lost Soul's code above should turn the trick for producing well-sized windows to hold your graphic:desc[pn]=['<a href="window.open("./graphics/5carddeluxe.jpg","_blank","scrollbars=no,width=420,height=620");">click</a>']You can adjust the width and height values.@ Lost Soul: Dang, it was just that easy! Who would have thought? Edited August 13, 2005 by blinkdt
glent Posted August 11, 2005 Author Posted August 11, 2005 It wont work the windows wont change to sticky, I cant click on the hyperlink because the windows close when I move my mouse ?
blinkdt Posted August 11, 2005 Posted August 11, 2005 Well, crap. Yeah, just tried it with the latest release and it was a no go, I apologize up front. I'm still using an older version of WPI and the underlying tooltip code is different. Really, sorry for that. Let me look into this with almulder and see what's up.... The versatility of shifting between popup (default behavior) and sticky has value, clearly.
Lost Soul Posted August 11, 2005 Posted August 11, 2005 @ Lost Soul: Dang, it was just that easy! Who would have thought? it seems your getting closer and closer
almulder Posted August 12, 2005 Posted August 12, 2005 glent upload your wpi and I will see why it is not working. I should have time tonight or tommorow night to do so. I got it working!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now