Answer the question
In order to leave comments, you need to log in
What is the best name for a universal online store - GoMarket or Cart?
I would like to know the best option for the name of the online store
Answer the question
In order to leave comments, you need to log in
It all depends on how the title is played.
You can fly with "Cart" and get rich on "milliondollarhomepage".
On topic - I like Cart better.
function cropSrc ($html) {
$end = (strpos($html, 'www.youtube.com') !== false) ? strlen($html) - 1 : strpos($html, ' ');
return substr($html, 0, $end);
}
$s1 = 'src="//www.youtube.com/embed/Tkk-ensUpqU?wmode=transparent">';
$s2 = 'src="/video/video_test.mp4" type="application/x-shockwave-flash" pluginspage="www.macromedia.com/go/getflashplayer" >';
echo cropSrc($s1) . '<br>';
echo cropSrc($s2);
I understand that we are still talking about js?
using jquery is easy:
you get something like this: //www.youtube.com/embed/Tkk-ensUpqU?wmode=transparent
and then form the desired string
var srcString = $(".class").attr("src");
var resultString = 'src="'+srcString+'"';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question