TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 06:13:06 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,106
  • Total Topics: 21,213
  • Online today: 358
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online

Fading Block of Php-Nuke

Started by Michiko, February 26, 2006, 01:27:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Michiko

Hello all,

I had been desperately looking for a block for my partner sites but found nothing. I remember Php-Nuke had this before so I searched google and found "Fading Block".

I would like to know if someone can help me port this block to TP. It would be of a great help :) Attached is the php file and below is the copy of JS.
<!--
//Gradual-Highlight image script- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use

function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
if (which2.style.MozOpacity)
which2.style.MozOpacity=0.3
else if (which2.filters)
which2.filters.alpha.opacity=30
}

function highlightit(cur2){
if (cur2.style.MozOpacity<1)
cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
else if (cur2.filters&&cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}
//-->







Thank you so much in advance.

[attachment deleted by admin]

IchBin

Try including this one in a phpbox block type. BTW, I think this javascript effect only works in IE.

[attachment deleted by admin]

Michiko

Hi IchBin,

Thank you so very much for your kind and quick reply  :). It's working perfectly. Hmm, you know what? I found a scrolling one from php-nuke as well.

I know it's too much if I'm to ask you again to port it to TP...but I'd rather risk loosing my head than not to ask you. Would you be so kind to do it for me  :-\ I really really appreciate your efforts and time whole heartedly. Please  :-*

[attachment deleted by admin]

IchBin

I think this will do the trick.

[attachment deleted by admin]

IchBin

BTW, thanks for posting those! :) I'm going to have to use the last one myself.

Michiko

Oh my how nice of you :). Thank you sooooo much! The last one is a lot better right? And by the way, you don't have to thank me. It is you who made the job.

gerrymo


yjobcreations


lurkalot

Quote from: IchBinâ,,¢ on February 26, 2006, 07:25:45 PM
I think this will do the trick.

Ichbin,

How do you add more than one link to this script.  Sorry for the dumb question, but I'm very new to all this.

I have one image, and links to the correct site when you click it.  But if I add any more links, it only displays the last one.  Any help would be appreciated, as this script is just what I'm after.

IchBin

You'll see that there are three lines that start with $scroll. Copy one of the lines and make the necessary changes for your own images.