Post by zantar » Thu Mar 24, 2011 3:56 am

i have a problem setting up this script to run on the main page of Open Cart ( VERSION, 1.4.9.3 )

working sample is on page, url, http://www.alaskanfrontiermall.com/welcome/engines.htm


i need it to work on the main page to my site which is the main page for Open Cart ( VERSION, 1.4.9.3 ) also following is the main page or URL = http://www.alaskanfrontiermall.com/welcome/index.php

i need help coding the index.php file for this Open Cart ( VERSION, 1.4.9.3 )

If you can help i can give you permission to use the script i own the resellrights to the script.

NOTICE:

if you can get it to work thanks so much and if i can help you with your issue's of mainly loading the open cart i am good at that, just ask me.

please notice where the small portion of script is located, on the below wroking script between the <head> and the <body> etc, this is important or the script will not work!!!!

------------ this part of the not to be included the script or script page -------this is just a seperator---------------
<html>

<head>

<style type="text/css">
v\:* { behavior: url(#default#VML); }
</style>

</head>

<body>


<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v"/>



<script type="text/javascript">

// Add as many messages as you like
var message=new Array("Welcome to the Alaskan Frontier Mall")

// Set the outline-color. Add as many colors as you like
var outlinecolor=new Array("black", "black")

// Set fillcolors 1. Add as many colors as you like
var fillcolor1=new Array("gray", "green", "white", "green")

// Set fillcolors 2. Add as many colors as you like
var fillcolor2=new Array("blue", "olive", "black", "lime")

// Set the letter marking the circle
var circlemark=new Array("*******")

// Set the width of the outline
var strkweight=2

// Set the waiting time between the messages (seconds)
var pause=4

// Set the strength of the opacity (transparency of letters)
var strengthopacity="60%"

// Set the size of the circle (values range from 0.1 to 1)
var circlesize=0.5

// Always keep messages in view even if page is scrolled? (DD added option)
var keepinview="yes"

// Do not edit below this line

function ietruebody(){ //Dynamicdrive added function
return (document.compatMode!="BackCompat")? document.documentElement : document.body
}

var outerwidth=ietruebody().clientWidth
var outerheight=ietruebody().clientHeight

var innerwidth=Math.floor(circlesize*outerwidth)
var innerheight=Math.floor(circlesize*outerheight)

var posleft=(outerwidth-innerwidth)/2
var postop=(outerheight-innerheight)/2

var path=new Array()
var i_message=0
var i_outlinecolor=0
var i_fillcolor1=0
var i_fillcolor2=0
var i_messagelength=0
var longestmessage=0
pause*=1000

var ie=document.getElementById&&document.all?1:0

for (i=0;i<=message.length-1;i++) {
if (message.length>longestmessage) {
longestmessage=message.length
}
longestmessage+=4
}

for (i=0;i<=message.length-1;i++) {

var emptyspace=""
var i_emptyspace=(longestmessage-message.length)/2
for (ii=0;ii<=i_emptyspace;ii++) {
emptyspace+=circlemark
}
message=emptyspace+" "+message+" "+emptyspace
}

function changeform() {
if (keepinview=="yes") //DD added
document.getElementById("roofid").style.top=ietruebody().scrollTop //DD added
if (i_outlinecolor >= outlinecolor.length) {i_outlinecolor=0}
if (i_fillcolor1 >= fillcolor1.length) {i_fillcolor1=0}
if (i_fillcolor2 >= fillcolor2.length) {i_fillcolor2=0}
document.getElementById('strokeid').color=outlinecolor[i_outlinecolor]
document.getElementById('fillid').color=fillcolor1[i_fillcolor1]
document.getElementById('fillid').color2=fillcolor2[i_fillcolor2]
if (i_message < message.length) {tick()}
else {document.getElementById('textpathid').string=""
document.getElementById("roofid").style.display="none" //DD added
}
}

function tick() {
if (i_messagelength <= message[i_message].length) {
var messagestringend=""
var messagestring=message[i_message].substring(0, i_messagelength)+messagestringend
document.getElementById('textpathid').string=messagestring
var timer=setTimeout("tick()",50)
i_messagelength++
}
else {
clearTimeout(timer)
i_messagelength=0
i_message++
i_outlinecolor++
i_fillcolor1++
i_fillcolor2++
var timer=setTimeout("changeform()",pause)
}

}

if (ie) {
document.write('<div id="roofid" style="position:absolute;left:0px;top:0px;width:'+outerwidth+'px;height:'+outerheight+'px;overflow:hidden;">')
document.write('<v:oval id="tc" style="position:absolute;top:'+postop+'px;left:'+posleft+'px;width:'+innerwidth+'px;height:'+innerheight+'px">')
document.write('<v:shadow on="t" opacity="'+strengthopacity+'"/>')
document.write('<v:stroke id="strokeid" weight="'+strkweight+'pt" color="blue"/>')
document.write('<v:fill id="fillid" on="True" color="'+fillcolor1[0]+'" color2="'+fillcolor2[0]+'" opacity="'+strengthopacity+'" opacity2="'+strengthopacity+'" type="gradient"/>')
document.write('<v:path textpathok="t"/>')
document.write('<v:textpath id="textpathid" on="t" id="mytp" style="font-family:\'Arial Black\'; " fitpath="t" string=""/>')
document.write('</v:oval></div>')
if (window.attachEvent) //DD added code
window.attachEvent("onload", changeform) //DD added code
else
window.onload=changeform
}
</script>


</body>

</html>

---------------------- end script this line is not included nor added to the script or script page ----------------------------



---i am assumeing that one of the two need to be edited home.php or index.php for Open Cart ( VERSION, 1.4.9.3 )-----

i have try to edit them but then it works with a new issue the page is lop sided or not lined up correctly?

if anyone can help it would be greatly appreciated !

X___________Z______________________

User avatar
Newbie

Posts

Joined
Thu Mar 24, 2011 3:02 am
Location - Juneau, Alaska

Post by symond93 » Wed Apr 06, 2011 3:26 pm

I have been taking a glance at plenty of different framework platforms (CodeIgniter, CakePHP, Kohana, Yii, phpMVC). All of them have their goods & bads. Most of them are overkill for only a cart process, so It is becoming clear to me that any framework redesigns would likely require to be a compilation of different features of multiple frameworks,ChromiumCart v0.8.1 Released lock down' 0.8.1 as the last successor to the elderly opencart, then you'll be free to make structural changes .

Canadian Pharmacy


Newbie

Posts

Joined
Wed Apr 06, 2011 3:21 pm

Post by oliviargi » Sun Apr 17, 2011 1:51 pm

Thanks for help

Newbie

Posts

Joined
Thu Mar 31, 2011 8:58 am
Who is online

Users browsing this forum: No registered users and 5 guests