this would be a fancy module

Stefek

Hello.

Today I found this fancy jQuery Plugin.

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

Have fun with it.

Regards,
Stefek
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

crnogorac081

Web developer

WebBird

#11
No. But if you call a JS-Function somewhere, maybe using onclick event handler, you could do something like this:


...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:

<body ... onload="JSInit(<?php echo WB_URL?>);">

crnogorac081

in the head of index.php file of the template


<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 ???
Web developer

WebBird

Where did you put the JS? Is it an external file you include? Then, <?php ?> won't work, of course. ;)

crnogorac081

#8
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

// 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 ?
Web developer

Stefek

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
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

WebBird


Stefek

Cool.

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

Regards,
Christian
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

roedental


Stefek

#3
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
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Bramus

This is PageEar, i think you can build it yourself into your index.php of the template very easy.
BRAMUS Internet Services

Vlob

http://www.crmcentraal.nl/salesmanager-crm-50.html

pull down the top right corner...

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