Jump to content

Recommended Posts

Posted

:hello: 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 :no: 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


Posted
:hello: 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 :no: 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

hmmm glent im not sure

at 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&gt]

but then i realised you couldnt click on it because it was a onmouse over effect so the link wouldnt stay still

then 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 you

and 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 prog

say 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

Posted
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 :P , any interest?

Posted
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 :P , any interest?

hmmm the overLIB gr8 ideal blinkdt that would work great in conjucntion with the script i previously wrote

but glent is that what you really want or are you thinking of some thing different ?

Posted

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 want

once again sorry i couldnt spend more time on this for you

  • 2 weeks later...
Posted (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=14
prog[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:

sticky2.gif

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 by blinkdt
Posted

It wont work :no: the windows wont change to sticky, I cant click on the hyperlink because the windows close when I move my mouse ?

Posted

Well, crap. Yeah, just tried it with the latest release and it was a no go, I apologize up front. :blushing: 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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...