WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => jQuery => Topic started by: Vlob on February 06, 2009, 03:40:03 PM

Title: this would be a fancy module
Post by: Vlob on February 06, 2009, 03:40:03 PM
http://www.crmcentraal.nl/salesmanager-crm-50.html

pull down the top right corner...

this would be freaking fancy to have as a module...

Title: Re: this would be a fancy module
Post by: Bramus on February 06, 2009, 03:52:34 PM
This is PageEar, i think you can build it yourself into your index.php of the template very easy.
Title: Page Peel, Pagepeel
Post by: Stefek on February 06, 2009, 04:20:27 PM
Yes, Bramus is right.

I have implemented this once in one of my Pinny Homepages (see my profile footer).
I hardcoded this that time.
But I had to buy the script for that (ebay, as I remember).

Christian
Title: Re: this would be a fancy module
Post by: roedental on February 06, 2009, 04:35:07 PM
Hey, have a look here:
http://www.webpicasso.de/blog/kostenloses-pagepeel/ (http://www.webpicasso.de/blog/kostenloses-pagepeel/)
it is for free,

Sven
Title: Re: this would be a fancy module
Post by: Stefek on February 06, 2009, 04:39:22 PM
Cool.

There are also Plugins available for typo3, joomla! and wordpress.
Would be nice to have one for WB also.

Regards,
Christian
Title: Re: this would be a fancy module
Post by: WebBird on February 12, 2009, 10:07:30 AM
How much will you pay? :-D
Title: Re: this would be a fancy module
Post by: Stefek on February 12, 2009, 10:18:53 AM
I wouldn't "pay".
I would preffere to "donate".

It depends on how handy your solution is.

If you have done one, PM me.  :wink:

But once donated and the licence your Module is based on is OS, don't wonder if I put it into the community for free  :-D

Regards,
Christian
Title: Re: this would be a fancy module
Post by: crnogorac081 on February 26, 2009, 04:24:37 PM
With a little work around, i made this working for wb.. Now I want to create a module and share it :)

Before I post it, I need a little help as I am not that good with php and java:

This is java script code
Code: [Select]
// url path
var urlToFolder = 'http://mywebsitebakerSite/media/subfolder/'  ---the line I added

// URL zum kleinen Bild / URL to small image
var pagearSmallImg = urlToFolder+'pageear_s.jpg' ;
As you can see, I can't figure out how to print variable from WB to this Java file...I tried to put:

var pageSmallImg = '<?php echo WB_URL."/media/subfolder/" ?>/pageear_s.jpg'

but I get result only as text... Maybe the sytax is wrong...can someone help...??



Also, is there a way that I can add some .JS files to be included in every template I use ?
Title: Re: this would be a fancy module
Post by: WebBird on February 27, 2009, 09:46:17 AM
Where did you put the JS? Is it an external file you include? Then, <?php ?> won't work, of course. ;)
Title: Re: this would be a fancy module
Post by: crnogorac081 on February 27, 2009, 10:08:28 AM
in the head of index.php file of the template

Code: [Select]
<script src="<?php echo WB_URL.MEDIA_DIRECTORY?>/EAR/AC_OETags.js" language="javascript"></script>
<script src="<?php echo WB_URL.MEDIA_DIRECTORY?>/EAR/pageear.js" type="text/javascript"></script>

is there a way I can call WB_URL or some other variable from php in these .js files ???
Title: Re: this would be a fancy module
Post by: WebBird on February 27, 2009, 10:16:12 AM
No. But if you call a JS-Function somewhere, maybe using onclick event handler, you could do something like this:

Code: [Select]
...onclick="myfunc(<?php echo WB_URL?>);"

Edit: You could use the onload handler to call an init function which sets the JS vars for later use.

Example:
Code: [Select]
<body ... onload="JSInit(<?php echo WB_URL?>);">
Title: Re: this would be a fancy module
Post by: crnogorac081 on February 27, 2009, 01:57:47 PM
i'll try something with this :))

tnx
Title: Re: this would be a fancy module
Post by: Stefek on December 11, 2009, 02:58:49 PM
Hello.

Today I found this fancy jQuery Plugin.

http://www.sohtanaka.com/web-design/examples/peeling-effect/

Have fun with it.

Regards,
Stefek